1、配置本地仓库地址
<localRepository>D:/Maven</localRepository>
2、在<profiles></profiles>标签里加入阿里云和我需要的私人仓库
<profiles>
<profile>
<id>myRepository1</id>
<repositories>
<repository>
<id>myRepository1_1</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>myRepository2</id>
<repositories>
<repository>
<id>myRepository2_1</id>
<url>http://yourIP:port/url</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
3、启动两个仓库
<activeProfiles>
<activeProfile>myRepository1</activeProfile>
<activeProfile>myRepository2</activeProfile>
</activeProfiles>