[수미수의 개발 브로구]

[IntelliJ] IntelliJ 빌드 시 Command line is too long. Shorten command line for 오류 발생 본문

Language & Framework/Java

[IntelliJ] IntelliJ 빌드 시 Command line is too long. Shorten command line for 오류 발생

수미수 2023. 9. 1. 13:40
반응형

오류 현상

  잘 동작 하던 프로젝트가 Build 시 갑자기 "Command line is too long.Shorten command line for.." 오류가 발생 하였고, Build가 되지 않는 현상이 발생 하였다.

해결 방법

.idea/workspace.xml 파일 수정

  아래 코드와 같이 workspace.xml 파일의 "PropertiesComponent" 항목에 "<property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" />" 추가 한다.

  <component name="PropertiesComponent">
...............
    <property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" />
  </component>
Run/Debug Configuration 수정

  만약, 위 방법으로도 똑같은 오류가 발생하면, 아래 그림과 같이 "Shorten command line" 부분을 "JAR manifest" 로 변경 후 다시 Build 하면 정상적으로 되는 것을 확인 할 수 있다.

 

반응형