Maven home (M2_HOME) not being picked up by IntelliJ IDEA

后端 未结 7 1878
时光取名叫无心
时光取名叫无心 2020-11-30 04:41

I am trying to do a simple maven build with IntelliJ IDEA 10.5.1 on OS X Lion and am getting the following error:

Error running my-app [package]: No

7条回答
  •  既然无缘
    2020-11-30 05:05

    If M2_HOME is configured to point to the Maven home directory then:

    1. Go to File -> Settings
    2. Search for Maven
    3. Select Runner
    4. Insert in the field VM Options the following string:

      Dmaven.multiModuleProjectDirectory=$M2_HOME
      

    Click Apply and OK

提交回复
热议问题