Mavens使用阿里云国内私服下载
前言
Github:https://github.com/HealerJean
别的不想说太多,只能说国内垃圾,连个maven都是国外的,默认私服是国外的,有时候下载非常慢
下面提供两种方式,个人建议如果是公司有私服,则用第二中,如果只是个人开发,则用第一种
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>
2、pom.xml写入中配置
<repositories>
<repository>
<id>nexus-aliyun</id>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</repository>
</repositories>