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

maven设置本地仓库地址和设置国内镜像

时间:2017-11-14 17:16:42      阅读:578      评论:0      收藏:0      [点我收藏+]

标签:name   url   pos   设置   profile   group   location   mirror   yun   

<?xml version="1.0" encoding="UTF-8"?>

 <!-- 英文注释已经被删除了,直接修改本地仓库地址用就行了。 -->

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
   <!-- 设置本地仓库的地址 -->
  <localRepository>D:/ruanjian/cangku</localRepository>
 
  <pluginGroups>
   
  </pluginGroups>


  <proxies>
  
  </proxies>

  
  <servers>
   
  </servers>

 <!-- 设置国内的镜像 -->
    <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors>

  
  <profiles>
  
  </profiles>

  
</settings>

 

maven设置本地仓库地址和设置国内镜像

标签:name   url   pos   设置   profile   group   location   mirror   yun   

原文地址:http://www.cnblogs.com/suiyisuixing/p/7833299.html

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