Wednesday 30 October 2013

How to install maven on Mac OSX 10.9 (mavericks)

I just updated to the fresh OSX 10.9 and found that a few things are not there, these things include “maven” too. So you can install Maven with package manager.
That Package Manager is Homebrew.


Homebrew website   http://brew.sh/


Install Homebrew if you don’t have it in your system


Just apply the following command:


Then install Maven using this package manager.


Run this command on your terminal:


$ brew install maven


After completing the download just confirm that your maven is successfully installed, run the command:


$ maven -version


If you get the following output, it means maven is installed successfully.


 Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 20:52:22+0530)  
 Maven home: /usr/local/Cellar/maven/3.1.1/libexec  
 Java version: 1.6.0_65, vendor: Apple Inc.  
 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home  
 Default locale: en_US, platform encoding: MacRoman  
 OS name: "mac os x", version: "10.9", arch: "x86_64", family: "mac"  

Share if you find it worthy. Enjoy Coding..!!!

2 comments:

  1. Thank you very much for this exact description.
    On my system the command for Maven is:

    > mvn -version

    thanks, Thomas

    ReplyDelete