IntelliJ IDEA Command line is too long.

IntelliJ IDEA Command line is too long.

Spring Boot 2+에서 발생하는 예외

 

Error running 'All in project-name': Command line is too long.

규모가 큰 프로젝트의 경우 실행 커맨드라인이 너무 길어 발생하는 에러다

(특히 Windows는 경로가 C:~~~~~~~ 매우 길다. Mac에서는 잘 안나는 에러이다)

<component name = "PropertiesComponent">

태그 하위에

<property name="dynamic.classpath" value="true" />

태그를 추가하면 해결된다

 

<!--file: '.idea/workspace.xml'-->
<component name="PropertiesComponent">
    <property name="dynamic.classpath" value="true" /> <
    <property name="Git.Branch.Popup.ShowAllRemotes" value="true" />
    <property name="RequestMappingsPanelOrder0" value="0" />
    
     .
     .
    중략
     .
     .
     
    <property name="RequestMappingsPanelOrder1" value="1" />
    <property name="RequestMappingsPanelWidth0" value="75" />
</component>

© 2022. All rights reserved.