maven国内快速镜像,国内maven中央仓库地址

以你之姓@ 2022-06-10 06:24 457阅读 0赞

转载地址:http://www.flypeng.com/bcsj/Java/2016/0322/1459.html

如何修改默认maven仓库呢?

1、打开maven的安装路径 例如:D:\apache-maven-3.0.5\conf\settings.xml

2、复制下面的mirror标签

3、找到settings.xml中mirrors标签,粘贴即可。

是不是很简单呢。

国内连接maven官方的仓库更新依赖库,网速一般很慢,收集一些国内快速的maven仓库镜像以备用。

====================国内OSChina提供的镜像,非常不错===================

  1. <mirror>
  2. <id>CN</id>
  3. <name>OSChina Central</name>
  4. <url>http://maven.oschina.net/content/groups/public/</url>
  5. <mirrorOf>central</mirrorOf>
  6. </mirror>

========================================================

==================其他maven仓库镜像==========================

  1. <mirror>
  2. <id>repo2</id>
  3. <mirrorOf>central</mirrorOf>
  4. <name>Human Readable Name for this Mirror.</name>
  5. <url>http://repo2.maven.org/maven2/</url>
  6. </mirror>
  7. <mirror>
  8. <id>net-cn</id>
  9. <mirrorOf>central</mirrorOf>
  10. <name>Human Readable Name for this Mirror.</name>
  11. <url>http://maven.net.cn/content/groups/public/</url>
  12. </mirror>
  13. <mirror>
  14. <id>ui</id>
  15. <mirrorOf>central</mirrorOf>
  16. <name>Human Readable Name for this Mirror.</name>
  17. <url>http://uk.maven.org/maven2/</url>
  18. </mirror>
  19. <mirror>
  20. <id>ibiblio</id>
  21. <mirrorOf>central</mirrorOf>
  22. <name>Human Readable Name for this Mirror.</name>
  23. <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
  24. </mirror>
  25. <mirror>
  26. <id>jboss-public-repository-group</id>
  27. <mirrorOf>central</mirrorOf>
  28. <name>JBoss Public Repository Group</name>
  29. <url>http://repository.jboss.org/nexus/content/groups/public</url>
  30. </mirror>

发表评论

表情:
评论列表 (有 0 条评论,457人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Maven国内仓库地址

    在pom.xml中添加maven 依赖包时,我就发现不管是否用了翻墙,下载速度都好慢,就1M的东西能下半天,很是苦恼,于是到网上搜资料,然后让我查到了。说是使用阿里的maven