maven配置阿里云镜像仓库

ゝ一世哀愁。 2022-12-11 15:25 321阅读 0赞

在settings.xml中配置如下即可。

  1. <mirrors>
  2. <!-- mirror
  3. | Specifies a repository mirror site to use instead of a given repository. The repository that
  4. | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
  5. | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
  6. |
  7. -->
  8. <mirror>
  9. <id>nexus-aliyun</id>
  10. <mirrorOf>central</mirrorOf>
  11. <name>Nexus aliyun</name>
  12. <url>http://maven.aliyun.com/nexus/content/groups/public"></url>
  13. </mirror>
  14. </mirrors>

发表评论

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

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

相关阅读

    相关 Maven配置阿里仓库

    Maven简介: Maven项目[对象模型][Link 1](POM),可以通过一小段描述信息来管理项目的构建,报告和文档的[项目管理工具][Link 2]软件。 Ma

    相关 maven添加阿里镜像仓库

    现在我们大多数java项目都使用maven来管理我们的依赖包,默认情况我们会从国外的maven中心仓库下载依赖,这样就造成下载速度较慢的问题。我们可以通过添加阿里云镜像提高ma