`-Dmaven.multiModuleProjectDirectory not set` issue with Maven and IntelliJ

后端 未结 3 829
一个人的身影
一个人的身影 2020-12-08 15:22

I\'ve spent quite some time trying to figure out what I\'m doing wrong and hoping someone may be able to help.

My current setup is running Maven 3.3.3 (via homebrew)

相关标签:
3条回答
  • 2020-12-08 15:32

    Just in case you have that error again go to Settings -> Maven -> Runner and add

    -Dmaven.multiModuleProjectDirectory=$M2_HOME
    

    to VM Options.

    enter image description here

    0 讨论(0)
  • 2020-12-08 15:35

    From the original question, the OP has solved their issue through this approach.

    I upgraded to IDEA 14, imported settings, created a new Spring project and it worked out of the box.

    0 讨论(0)
  • 2020-12-08 15:54

    I had this wired issue while trying to build CAS Overlay Template using Maven. I could resolve it by adding the following environment variable:

    MAVEN_OPTS = -Dmaven.multiModuleProjectDirectory
    
    0 讨论(0)
提交回复
热议问题