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

后端 未结 7 1841
时光取名叫无心
时光取名叫无心 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:18

    Another option is to add the M2_HOME variable at: IntelliJ IDEA=>Preferences=>IDE Settings=>Path Variables

    After a restart of IntelliJ, IntelliJ IDEA=>Preferences=>Project Settings=>Maven=>Maven home directory should be set to your M2_HOME variable.

    0 讨论(0)
提交回复
热议问题