1著淆、配置本地倉(cāng)庫(kù)地址
<localRepository>D:/Maven</localRepository>
2永部、在<profiles></profiles>標(biāo)簽里加入阿里云和我需要的私人倉(cāng)庫(kù)
<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苔埋、啟動(dòng)兩個(gè)倉(cāng)庫(kù)
<activeProfiles>
<activeProfile>myRepository1</activeProfile>
<activeProfile>myRepository2</activeProfile>
</activeProfiles>