码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-10-26 11:53:57      阅读:239      评论:0      收藏:0      [点我收藏+]

标签:mat   tor   snap   mirror   osi   site   配置   spec   nexus   

  <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仓库速度快

标签:mat   tor   snap   mirror   osi   site   配置   spec   nexus   

原文地址:http://www.cnblogs.com/faunjoe88/p/7735562.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!