maven国内快速镜像,国内maven中央仓库地址
https://www.yqxbc.com win10系统 发布时间:2016-03-22 00:00 来源:一起学编程 浏览:加载中

如何修改默认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>