<?xml version="1.0"?>
<settings>
<!--本地仓库的地址-->
<localRepository>D:/myrepository/repository</localRepository>
<!--配置远程仓库服务器nexus的用户名和密码,上传构件时使用-->
<servers>
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
<!-- 下载构件时使用 -->
<mirrors>
<mirror>
<id>public</id>
<mirrorOf>*</mirrorOf>
<name>nexus mirror</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
<!--远程仓库的地址-->
<profiles>
<profile>
<id>public</id>
<repositories>
<repository>
<id>public</id>
<name>nexus</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>public</activeProfile>
</activeProfiles>
</settings>