1. 程式人生 > >國內比較快的maven中央倉庫

國內比較快的maven中央倉庫

pub 更改 ali posit repos mirrorof different color use

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

國內比較快的maven中央倉庫