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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM