1. Download the apache-maven-3.0.4.zip package
2. Unzip to a certain location on the hard disk, such as the root directory of the D drive
3. Set M2_HOME: C:\apache-maven-3.0.4
4. Set the maven library address %M2_HOME%\conf\setting.xml
<localRepository>X:\repository</localRepository> Where X:\repository is the maven library address |