首页 > 其他 > 详细

maven 配置阿里云中央仓库

时间:2019-03-09 11:12:57      阅读:185      评论:0      收藏:0      [点我收藏+]

一、修改maven根目录下的conf文件夹中的setting.xml文件

1 <mirror>
2       <id>alimaven</id>
3       <name>aliyun maven</name>
4       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
5       <mirrorOf>central</mirrorOf>        
6 </mirror>

 

二、在maven项目工程中的pom.xml里直接加入

 1 <repositories> 
 2     <repository>  
 3         <id>maven-ali</id>  
 4         <url>http://maven.aliyun.com/nexus/content/groups/public//</url> 5         <releases>  
 6             <enabled>true</enabled>  
 7         </releases>  
 8         <snapshots>  
 9             <enabled>true</enabled>  
10             <updatePolicy>always</updatePolicy>  
11             <checksumPolicy>fail</checksumPolicy>  
12         </snapshots>  
13     </repository>  
14 </repositories>

 

maven 配置阿里云中央仓库

原文:https://www.cnblogs.com/zhangweibin/p/10036953.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!