Maven Install on Mac OS X

后端 未结 24 2031
野性不改
野性不改 2020-11-27 08:46

I\'m trying to install maven through the terminal by following these instructions.

So far I got this

export M2_HOME=/user/apple/apache-maven-3.0.3
ex         


        
24条回答
  •  有刺的猬
    2020-11-27 09:31

    When I upgraded recently to OS X Mavericks and my maven builds start failing. So I needed to install maven again as it doesn't come built in. Then I tried with the command:

    brew install maven 
    

    it works, but it installs the version 3.1.1 of maven which causes some problems for a few users like (https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound). So if you're running into the same issue you will probably want to install the earlier Maven version, the 3.0.5. To do that with Homebrew, you have to execute the following command:

    brew install https://raw.github.com/Homebrew/homebrew-versions/master/maven30.rb
    

    That's it, it will then use a different Homebrew's formulae which will give you the maven 3.0.5 instead.

提交回复
热议问题