Steps:
1. Download the Maven tar package
Https://maven.apache.org/download.cgi?Preferred=http%3A%2F%2Fmirrors.tuna.tsinghua.edu.cn%2Fapache%2F
Here is the latest version of download 3.5.0
2. Download and unzip to the/usr/local/maven/directory (if not, create new.) The/usr directory is hidden by default, in addition to the available commands to exercise its display [self-Baidu], can also be spotlight input/usr/quickly jump to the directory)
/usr/local/maven/apache-maven-3.5.0
3. Create Environment variables
CD to root path, CD ~
- Vim. Bash_profile
Press I to enable edit mode, add the following command:
Export maven_home=/usr/local/maven/apache-maven-3.5.0
Export path= $PATH: $MAVEN _home/bin
2. Esc:wq Save and exit
4. See if MAVEN is installed successfully
New terminal
Reference Link: http://blog.csdn.net/anialy/article/details/22217937
MAC OS configuration Maven