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

Maven可用setting.xml

时间:2018-07-12 13:26:36      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:mave   技术分享   odi   play   最简   local   yun   分享图片   --   

  最简单的可用阿里镜像配置

技术分享图片
 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <settings> 
 3 <localRepository>D:\Tools\java\maven\repository</localRepository><!--需要改成自己的maven的本地仓库地址-->
 4     <mirrors>
 5         <mirror>
 6             <id>alimaven</id>
 7             <name>aliyun maven</name>
 8             <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
 9             <mirrorOf>central</mirrorOf>
10         </mirror>
11     </mirrors>
12   <profiles>
13     <profile>
14        <id>nexus</id> 
15         <repositories>
16             <repository>
17                 <id>nexus</id>
18                 <name>local private nexus</name>
19                 <url>http://maven.oschina.net/content/groups/public/</url>
20                 <releases>
21                     <enabled>true</enabled>
22                 </releases>
23                 <snapshots>
24                     <enabled>false</enabled>
25                 </snapshots>
26             </repository>
27         </repositories>
28         
29         <pluginRepositories>
30             <pluginRepository>
31             <id>nexus</id>
32             <name>local private nexus</name>
33             <url>http://maven.oschina.net/content/groups/public/</url>
34             <releases>
35                 <enabled>true</enabled>
36             </releases>
37             <snapshots>
38                 <enabled>false</enabled>
39             </snapshots>
40             </pluginRepository>
41         </pluginRepositories>
42     </profile></profiles>
43 </settings>
setting.xml

 

Maven可用setting.xml

标签:mave   技术分享   odi   play   最简   local   yun   分享图片   --   

原文地址:https://www.cnblogs.com/maojunyi/p/9297952.html

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