maven阿里云中央仓库

maven阿里云中央仓库

maven作为一个项目管理工具确实非常好用,但是在国内这个网络条件下实在是让人恼火。

其实,我使用的仓库镜像列表如下,大家可以试试。

配置

修改maven根目录下的conf文件夹中的setting.xml文件,内容如下:

<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>

<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

之后就能享受如飞的maven下载速度。

原文地址:https://www.cnblogs.com/lexiaofei/p/6514099.html