加速maven的下载速度-使用阿里云镜像
maven过程下载包的速度总是很慢,因为默认的maven中央仓库是国外的,改为阿里云的中央仓库就好了。只需要在setting.xml中mirrors节点中增加一段代码:
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
正文到此结束
- 所属分类: 后端技术
- 本文标签:
- 版权声明: 原创文章如转载,请注明本文链接: http://www.seaxiang.com/blog/ali_maven_mirror