修改maven根目錄下的conf文件夾中的setting.xml文件,若是你修改了默認倉庫的存儲位置,即.m2文件夾下沒有本地倉庫,可是有個setting.xml文件,那就修改這個文件就能夠。
spring
具體內容和示意圖以下:koa
Maven 中央存儲庫 – http://search.maven.orgmaven
#收集的比較快的maven倉庫 http://maven.wso2.org/nexus/content/groups/public/ http://jcenter.bintray.com/ http://maven.antelink.com/content/repositories/central/ http://nexus.openkoala.org/nexus/content/groups/Koala-release/ http://maven.tmatesoft.com/content/groups/public/ http://mavensync.zkoss.org/maven2/ http://maven.springframework.org/release/
<mirror> <id>UK</id> <name>UK Central</name> <url>http://uk.maven.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>sonatype</id> <name>sonatype Central</name> <url>http://repository.sonatype.org/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>jboss-public-repository-group</id> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> <mirrorOf>central</mirrorOf> </mirror>
其餘鏡像地址:ide
oschinathis
<mirror> <id>CN</id> <name>OSChina Central</name> <url>http://maven.oschina.net/content/groups/public/</url> <mirrorOf>central</mirrorOf></mirror>
repo2url
<mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror>
net-cn spa
<mirror> <id>net-cn</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://maven.net.cn/content/groups/public/</url> </mirror>
uk.net
<mirror> <id>uk</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://uk.maven.org/maven2/</url> </mirror>
ibiblio 3d
<mirror> <id>ibiblio</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url> </mirror>
jbosscode
<mirror> <id>jboss-public-repository-group</id> <mirrorOf>central</mirrorOf> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> </mirror>