阿里云 maven 镜像地址

灰太狼 2023-07-21 16:24 110阅读 0赞

在maven安装目录下的settings.xml文件里的mirrors节点中,添加如下子节点:

  1. <mirror>
  2. <id>alimaven</id>
  3. <name>aliyun maven</name>
  4. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  5. <mirrorOf>central</mirrorOf>
  6. </mirror>
  7. <!-- ali-repertory -->
  8. <mirror>
  9. <id>alimaven</id>
  10. <mirrorOf>central</mirrorOf>
  11. <name>aliyun maven</name>
  12. <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
  13. </mirror>
  14. <!-- repertory1 -->
  15. <mirror>
  16. <id>repo1</id>
  17. <mirrorOf>central</mirrorOf>
  18. <name>Human Readable Name for this Mirror.</name>
  19. <url>http://repo1.maven.org/maven2/</url>
  20. </mirror>
  21. <!-- repertory2-->
  22. <mirror>
  23. <id>repo2</id>
  24. <mirrorOf>central</mirrorOf>
  25. <name>Human Readable Name for this Mirror.</name>
  26. <url>http://repo2.maven.org/maven2/</url>
  27. </mirror>

发表评论

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

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

相关阅读