After the upgrade of Mac OS X Mavericks, Maven is removed (no idea why). So, you have the to install it manually.
**2.1–download Maven**download The Maven, for example apache-maven-3.1.1-bin.tar.gz
. Extracts it,
-xvf apache-maven-3.1.1-bin.tar.gz$pwd/Users/mkyong/apache-maven-3.1.1
2.2–set Maven command in environment variable.
Update ~/. Bash_profile–create this file if doesn ' t exist.
$ vim ~/.bash_profile~/.bash_profileexport M2_HOME=/Users/mkyong/apache-maven-3.1.1export PATH=$PATH:$M2_HOME/bin
Restart the terminal. Test it.
$MVN-versionApache Maven3.1. 1(0728685237757ffbf44136acec0402957f723d9a; -- the- - at: A: A+0800) Maven Home:/users/mkyong/apache-maven-3.1. 1Javaversion:1.7. 0_05, Vendor:oracle Corporationjava home:/library/java/javavirtualmachines/1.7. 0. Jdk/contents/home/jredefault Locale:en_us,Platformencoding:utf-8OS Name:"Mac OS X",version:"10.9", Arch:"x86_64", Family:"Mac"
1.http://www.mkyong.com/maven/install-maven-on-mac-osx/
How-to-install Maven on Mac OSX