#Maven仓库镜像
修改Maven setting.xml文件 在<mirrors> 标签内添加以下镜像。
<font color="red">注意:如果构建错误,请根据错误信息,调整镜像位置</font>
1<mirror> 2 <id>repo2</id> 3 <mirrorOf>central</mirrorOf> 4 <name>Human Readable Name for this Mirror.</name> 5 <url>http://repo2.maven.org/maven2/</url> 6 </mirror> 7<mirror> 8 <id>net-cn</id> 9 <mirrorOf>central</mirrorOf> 10 <name>Human Readable Name for this Mirror.</name> 11 <url>http://maven.net.cn/content/groups/public/</url> 12 </mirror> 13<mirror> 14 <id>ui</id> 15 <mirrorOf>central</mirrorOf> 16 <name>Human Readable Name for this Mirror.</name> 17 <url>http://uk.maven.org/maven2/</url> 18 </mirror> 19<mirror> 20 <id>ibiblio</id> 21 <mirrorOf>central</mirrorOf> 22 <name>Human Readable Name for this Mirror.</name> 23 <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url> 24 </mirror> 25<mirror> 26 <id>jboss-public-repository-group</id> 27 <mirrorOf>central</mirrorOf> 28 <name>JBoss Public Repository Group</name> 29 <url>http://repository.jboss.org/nexus/content/groups/public</url> 30</mirror>