Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )
1: unpack Maven archive ( not to take Chinese and spaces )
2. to build an empty folder (in D drive D: \ Repository)
3: Configure local repository
in Maven unzip directory set: conf / settings.xml local repository path ( D: \ Repository)
in line 55:
<localRepository>仓库路径</localRepository>
4: <mirrors> 159 line </ mirrors> tag, add
<mirror>
<id>AliMaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
5: Set the Maven environment variable
1) Set MAVEN_HOME is the path where you maven
你的maven路径
2) set the Path environment variable:
%MAVEN_HOME%\bin
6: Testing
in Open DOS: mvn -version Version information can appear