加速maven的下载速度-使用阿里云镜像

2017-06-19 浏览 (1631)

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>

  • 所属分类: 后端技术
  • 版权声明: 本文链接 https://seaxiang.com/blog/ali_maven_mirror