Maven修改镜像仓库地址

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

具体内容和示意图以下:koa


  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>


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


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

<mirror> <id>UK</id> <name>UK Central</name> <url>http://uk.maven.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>sonatype</id> <name>sonatype Central</name> <url>http://repository.sonatype.org/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>jboss-public-repository-group</id> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> <mirrorOf>central</mirrorOf> </mirror>


其余镜像地址:ide

oschinathis

  
  
  
  
<mirror>    <id>CN</id>    <name>OSChina Central</name>                                       <url>http://maven.oschina.net/content/groups/public/</url>    <mirrorOf>central</mirrorOf></mirror>

repo2url

  
  
  
  
<mirror>      <id>repo2</id>      <mirrorOf>central</mirrorOf>      <name>Human Readable Name for this Mirror.</name>      <url>http://repo2.maven.org/maven2/</url>  </mirror>

net-cn spa

  
  
  
  
<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>

uk.net

  
  
  
  
<mirror>      <id>uk</id>      <mirrorOf>central</mirrorOf>      <name>Human Readable Name for this Mirror.</name>      <url>http://uk.maven.org/maven2/</url>  </mirror>

ibiblio 3d

  
  
  
  
<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>

jbosscode

  
  
  
  
<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>


相关文章
相关标签/搜索