1.下载maven到本地
2.编辑环境变量 MAVEN_HOME,path
MAVEN_HOME指向maven解压后的地址;path后添加 %MAVEN_HOME%\bin即可
3.编辑$MAVEN_HOME/conf/setting.xml文件,添加阿里云的mirror
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
自定义repository
<localRepository>E:/software/study-about/apache-maven-3.5.0-bin/apache-maven-3.5.0/m2</localRepository>
4.修改eclipse->preference->maven->installations,使用自定义的maven地址
5.设置user settings,使其指向自定义的setting位置
6.重启eclipse