maven repository国内镜像地址

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

阅读更多
个人分类: java+web
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭