Maven远程仓库地址修改(精)

国内最快的maven镜像  阿里云maven镜像

1 <repositories>
2   <repository>
3       <id>spring-snapshots</id>
4     <url>http://maven.aliyun.com/nexus/content/groups/public</url>
5   </repository>
6 </repositories>

上面的代码时配置每个项目里面的,如果你想要暴力点,那就直接配置在%M2_HOME%\conf\settings.xml里,代码如下所示。

1 <mirrors>
2     <mirror>
3         <id>alimaven</id>
4         <name>aliyun maven</name>
5         <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
6         <mirrorOf>central</mirrorOf>        
7     </mirror>
8 </mirrors>

其他maven仓库地址推荐:

Jcenter http://jcenter.bintray.com/
Jboss http://repository.jboss.org/nexus/content/groups/public/
Maven Central http://repo2.maven.org/maven2/
Ibiblio http://mirrors.ibiblio.org/pub/mirrors/maven2
UK Maven http://uk.maven.org/maven2/

  

posted @ 2018-01-06 13:32  crazy-zz5536  阅读(3134)  评论(0编辑  收藏  举报