转自:http://www.cnblogs.com/dingyingsi/p/3856456.html
我们在开发过程中,用maven工具下载jar包时特别慢,这是由于访问国外网站较慢的缘故,其实我们可以在maven的配置文件conf中的setting中设置镜像,从而使下载文件更快。
- 国内连接maven官方的仓库更新依赖库,网速一般很慢,收集一些国内快速的maven仓库镜像以备用。
- <mirror>
- <id>CN</id>
- <name>OSChina Central</name>
- <url>http://maven.oschina.net/content/groups/public/</url>
- <mirrorOf>central</mirrorOf>
- </mirror>
-
- <mirror>
- <id>repo2</id>
- <mirrorOf>central</mirrorOf>
- <name>Human Readable Name for this Mirror.</name>
- <url>http://repo2.maven.org/maven2/</url>
- </mirror>
- <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>
- <mirror>
- <id>ui</id>
- <mirrorOf>central</mirrorOf>
- <name>Human Readable Name for this Mirror.</name>
- <url>http://uk.maven.org/maven2/</url>
- </mirror>
- <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>
- <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>
- <mirror>
- <id>JBossJBPM</id>
- <mirrorOf>central</mirrorOf>
- <name>JBossJBPM Repository</name>
- <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
- </mirror>
- -------------------------spring maven--------------------------------
- http://maven.springframework.org/release/
- ---------------------------------------------------------------------
- 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/