国内比较快的maven中央仓库

打开maven/conf/settings.xml更改配置文件,将默认的(注释)仓库换成如下:

 <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*</mirrorOf> 
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>
    <mirror>
      <!--This is used to direct the public snapshots repo in the 
          profile below over to a different nexus group -->
      <id>nexus-public-snapshots</id>
      <mirrorOf>public-snapshots</mirrorOf> 
      <url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
    </mirror>

 

参考链接:https://yq.aliyun.com/articles/255523

posted @ 2017-12-29 21:25  vlime  阅读(1439)  评论(0编辑  收藏  举报