Maven的镜像设置

文件位置

 

国内的阿里云

 <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors>

英国的镜像

 <mirror>
     <id>UK</id>
     <name>UK Central</name>
     <url>http://uk.maven.org/maven2</url>
     <mirrorOf>central</mirrorOf>
     </mirror>
  </mirrors>

酌情使用吧

 

2017/5/6补充:

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

    <mirror>    
      <id>JBossJBPM</id>   
    <mirrorOf>central</mirrorOf>   
    <name>JBossJBPM Repository</name>   
    <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>  
    </mirror>

 

posted @ 2017-04-22 11:28  雪山上的蒲公英  阅读(334)  评论(0编辑  收藏  举报
/* 返回顶部代码 */