Maven修改镜像仓库地址

修改maven根目录下的conf文件夹中的setting.xml文件,如果你修改了默认仓库的存储位置,即.m2文件夹下没有本地仓库,但是有个setting.xml文件,那就修改这个文件就可以。

具体内容和示意图如下:


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


1040703-20161203224616802-751353776.png

Maven 中央存储库 – http://search.maven.org


#收集的比较快的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/

 
 
 
 


其他镜像地址:

oschina

 
  
  1. <mirror>
  2.     <id>CN</id>
  3.     <name>OSChina Central</name>                                   
  4.     <url>http://maven.oschina.net/content/groups/public/</url>
  5.     <mirrorOf>central</mirrorOf>
  6. </mirror>

repo2

 
  
  1. <mirror>  
  2.     <id>repo2</id>  
  3.     <mirrorOf>central</mirrorOf>  
  4.     <name>Human Readable Name for this Mirror.</name>  
  5.     <url>http://repo2.maven.org/maven2/</url>  
  6. </mirror>

net-cn 

 
  
  1. <mirror>  
  2.     <id>net-cn</id>  
  3.     <mirrorOf>central</mirrorOf>  
  4.     <name>Human Readable Name for this Mirror.</name>  
  5.     <url>http://maven.net.cn/content/groups/public/</url>   
  6. </mirror>

uk

 
  
  1. <mirror>  
  2.     <id>uk</id>  
  3.     <mirrorOf>central</mirrorOf>  
  4.     <name>Human Readable Name for this Mirror.</name>  
  5.     <url>http://uk.maven.org/maven2/</url>  
  6. </mirror>

ibiblio 

 
  
  1. <mirror>  
  2.     <id>ibiblio</id>  
  3.     <mirrorOf>central</mirrorOf>  
  4.     <name>Human Readable Name for this Mirror.</name>  
  5.     <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>  
  6. </mirror>

jboss

 
  
  1. <mirror>  
  2.     <id>jboss-public-repository-group</id>  
  3.     <mirrorOf>central</mirrorOf>  
  4.     <name>JBoss Public Repository Group</name>  
  5.     <url>http://repository.jboss.org/nexus/content/groups/public</url>  
  6. </mirror>




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值