当前位置:   article > 正文

设置国内maven镜像仓库_maven国内镜像仓库

maven国内镜像仓库

国外的镜像仓库访问慢,所以在打开新的maven项目或者用idea下载相关插件的时候,速度很慢,更改maven仓库地址,改成阿里巴巴的,就能加快反应速度了。

找到idea安装目录,我的是

sC:\Program Files\JetBrains\IntelliJ IDEA 2018.2.2\plugins\maven\lib\maven3\conf,然后在里面有一个settings.xml的文件,打开这个文件,找到<mirrors>标签,在里面加上阿里的镜像就可以了。

  1. <mirrors>
  2. <!--这个就是阿里云的镜像地址,放到这里就行了,下面的注释是本来就有的。-->
  3. <mirror>
  4. <id>nexus-aliyun</id>
  5. <mirrorOf>central</mirrorOf>
  6. <name>Nexus aliyun</name>
  7. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  8. </mirror>
  9. <!-- mirror
  10. | Specifies a repository mirror site to use instead of a given repository. The repository that
  11. | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
  12. | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
  13. |
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/87434?site
推荐阅读
相关标签
  

闽ICP备14008679号