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

后端 未结 7 1897
时光取名叫无心
时光取名叫无心 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条回答
  •  猫巷女王i
    2020-11-30 04:58

    Mac OS apps cannot read bash environment variables. Look at this question Setting environment variables in OS X? to expose M2_HOME to all applications including IntelliJ. You do need to restart after doing this.

提交回复
热议问题