您的位置:首页 > 其它

maven国内快速镜像,国内maven中央仓库地址

2016-11-05 21:10 519 查看
http://www.flypeng.com/bcsj/java/2016/0322/1459.html

如何修改默认maven仓库呢?

1、打开maven的安装路径    例如:D:\apache-maven-3.0.5\conf\settings.xml

2、复制下面的mirror标签

3、找到settings.xml中mirrors标签,粘贴即可。

是不是很简单呢。

国内连接maven官方的仓库更新依赖库,网速一般很慢,收集一些国内快速的maven仓库镜像以备用。

====================国内OSChina提供的镜像,非常不错===================

<mirror>

<id>CN</id>

<name>OSChina Central</name>                                                                                                                       

<url>http://maven.oschina.net/content/groups/public/</url>

<mirrorOf>central</mirrorOf>

</mirror>

========================================================

==================其他maven仓库镜像==========================

<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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: