<mirror><id>nexus-aliyun</id><mirrorOf>central</mirrorOf><name>Nexus aliyun</name><url>http://maven.aliyun.com/nexus/content/groups/public</url></mirror>
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><localRepository>D:\Maven\Repository</localRepository> <!--需要改成自己的maven的本地仓库地址--><interactiveMode>true</interactiveMode><offline>false</offline><pluginGroups></pluginGroups><proxies><proxy><id>proxy1</id><active>true</active><protocol>http</protocol><host>10.37.84.120</host><port>8080</port><username>liuyan768</username><password>143143Dy</password><nonProxyHosts>paic.com.cn|10.180.204.60</nonProxyHosts></proxy></proxies><servers><server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server></servers><profiles><profile><id>jdk-1.8</id><activation><jdk>1.8</jdk></activation><repositories><repository><id>central</id><name>Maven Repository Switchboard</name><layout>default</layout><url>http://repo1.maven.org/maven2</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository><repository><id>nexus</id><name>local private nexus</name><url>http://10.180.204.60:38081/nexus/content/repositories/thirdparty/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>nexus</id><name>local private nexus</name><url>http://maven.oschina.net/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>jdk-1.8</activeProfile></activeProfiles></settings>
setting文件路径:
settings.xml的默认路径就:个人目录/.m2/settings.xml
如:
windowns: C:\Users\你的用户名.m2\settings.xml
linux: /home/你的用户名/.m2/settings.xml
