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

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

    type in Terminal:

    $ mvn --version
    

    then get following result:

    Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 16:51:28+0300)
    Maven home: /opt/local/share/java/maven3
    Java version: 1.6.0_65, vendor: Apple Inc.
    Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    Default locale: ru_RU, platform encoding: MacCyrillic
    OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"
    

    here in second line we have:

    Maven home: /opt/local/share/java/maven3
    

    type this path into field on configuration dialog. That's all to fix!

提交回复
热议问题