1. Download
Download maven version 3.3.9 from this website http://maven.apache.org/download.cgi
2. Unzip
Unzip maven to a directory that does not contain Chinese and spaces.
bin directory mvn.bat (run the project in run mode), mvnDebug.bat (run the project in debug mode )
The boot directory maven requires a class loader to run
conf directory settings.xml the entire maven tool core configuration file
lib directory maven runs dependent jar package
3. Environment variable configuration
The java environment needs to be installed on the computer , and the JDK1.7+ version is installed ( configure the environment variable path in JAVA_HOME/bin )
Placement MAVEN_HOME
Add %MAVEN_HOME%/bin to the environment variable path
Use the mvn -v command to check whether maven is installed successfully. If you see that the version of maven is 3.3.9 and the version of java is 1.7 , the installation is successful.
4. Configure the local repository
If you need a local repository, extract " repository.rar " to your computer. This tutorial is extracted in F:\develop\maven\repository
Configure the local repository location in the MAVE_HOME/conf/settings.xml file:
Add maven first
Then configure the storage location of settings.xml