maven中config配置文件settings.xml中添加多镜像配置即可
<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>Maven repository provided by aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Maven repository in UK</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>osc</id>
<mirrorOf>central</mirrorOf>
<name>Maven repository provided by oschina</name>
<url>http://maven.oschina.net/content/groups/public/</url>
</mirror>
</mirrors>