1. Download Maven Package:
Download link:?? http://maven.apache.org/download.cgi
Maven Download File Explanation:
1?? Binary tar.gz Archive: Is installed on Linux, MacOSX.
2?? Binary Zip Archive: is installed on Windows.
3?? Binary represents compiled binaries, which are generally small and suitable for direct use in projects.
4?? Source indicates that you can view the sources, larger than binary, if you want to see Maven source code can download this kind of.
2. Configure the MAVEN environment variable (first make sure that the Java environment variable is configured):
1?? First double-click Binary tar.gz archive file, extract to the file directory;
2?? View file path: 1) First, open the terminal;
2) Then drag the apache-maven-3.5.0 folder into the terminal, the folder path will be displayed;
3?? On the terminal, open the Configure environment variable to file:
1) in the terminal input Vim ~/.bash_profile, into the environment variable configuration file;
2) After entering, it is read mode, press I (Edit) key, enter insert mode;
3) Add environment Variables in fact, the environment variables are as follows:
Export maven_home=/users/robbie/apache-maven-3.3.3
Export path= $PATH: $MAVEN _home/bin
4) Press ESC to exit insert mode, 5) Enter: Wq (save modify) to exit the current file, 6) make the modified environment variable bash_profile file effective, enter the source. Bash_profile, press ENT Er key.
Installing MAVEN and configuring environment variables under Mac