1. 程式人生 > >Windows下 Maven 使用 阿里雲映象配置

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>
複製程式碼