Windows下 Maven 使用 阿里云镜像配置

 

新建或者修改文件: C:\Users\user\.m2\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       <localRepository/>
 6       <interactiveMode/>
 7       <usePluginRegistry/>
 8       <offline/>
 9       <pluginGroups/>
10       <servers/>
11      <mirrors>
12     <mirror>
13       <id>alimaven</id>
14       <name>aliyun maven</name>
15       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
16       <mirrorOf>central</mirrorOf>        
17     </mirror>
18   </mirrors>
19       <proxies/>
20       <profiles/>
21       <activeProfiles/>
22     </settings>

 

posted @ 2016-12-01 14:54  guangfengli  阅读(4213)  评论(0编辑  收藏  举报