1.设置本地库
<localRepository>E:\apache-maven\repository</localRepository>
2.设置镜像
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
原文:https://www.cnblogs.com/wanglijun/p/14807613.html