国内阿里Maven仓库镜像Maven配置文件Maven仓库速度快

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了国内阿里Maven仓库镜像Maven配置文件Maven仓库速度快相关的知识,希望对你有一定的参考价值。

  <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
    <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*</mirrorOf> 
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>
    <mirror>
      <!--This is used to direct the public snapshots repo in the 
          profile below over to a different nexus group -->
      <id>nexus-public-snapshots</id>
      <mirrorOf>public-snapshots</mirrorOf> 
      <url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
    </mirror>
  </mirrors>

 

以上是关于国内阿里Maven仓库镜像Maven配置文件Maven仓库速度快的主要内容,如果未能解决你的问题,请参考以下文章

maven的国内镜像配置

Maven镜像更换为阿里云中央仓库(精)

maven配置多仓库镜像(转)

maven 阿里云 国内镜像 中央仓库

Maven配置成国内阿里云镜像仓库

maven仓库配置阿里云镜像