码迷,mamicode.com
首页 > Web开发 > 详细

maven-ali镜像网站setting.xml

时间:2017-11-09 00:17:33      阅读:324      评论:0      收藏:0      [点我收藏+]

标签:问题   ima   maven   pac   tps   网站   user   com   col   

简述

    使用maven管理jar包的时候,有可能会有网络限制,要解决的这个问题的话可以使用ali的镜像网站。

创建文件

    创建settings.xml,内容如下

 1 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
 2       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 3       xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
 4                           https://maven.apache.org/xsd/settings-1.0.0.xsd">
 5       <mirrors>
 6         <mirror>  
 7             <id>alimaven</id>  
 8             <name>aliyun maven</name>  
 9             <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
10             <mirrorOf>central</mirrorOf>          
11         </mirror>  
12       </mirrors>
13 </settings>

    然后将文件保存到C:\Users\Administrator\.m2下,和repository文件夹同级即可。

maven-ali镜像网站setting.xml

标签:问题   ima   maven   pac   tps   网站   user   com   col   

原文地址:http://www.cnblogs.com/gaofei-1/p/7806849.html

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