maven repository国内镜像地址

来源:互联网 发布:360浏览器网络连接错误 编辑:程序博客网 时间:2024/05/17 06:25

1.

修改setting.xml

<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<repositories>
<repository>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>


2.

 repositories {    maven { url "https://repo.spring.io/libs-release" }    maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }    mavenLocal()    mavenCentral()  }

3.

maven repository国内镜像地址


参考:

https://segmentfault.com/q/1010000007373569

http://blog.csdn.net/xxzblog/article/details/53313737

http://jingyan.baidu.com/article/f96699bbd4a7b3894f3c1b72.html

0 0
原创粉丝点击