maven多倉庫配置
阿新 • • 發佈:2018-12-21
<profile>
<!-- id必須唯一 -->
<id>alibaba central</id>
<repositories>
<repository>
<!-- id必須唯一 -->
<id>alibaba central_1</id>
<!-- 倉庫的url地址 -->
< url>http://mvnrepo.alibaba-inc.com/nexus/content/repositories/central/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
< updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<!-- id必須唯一 -->
<id>maven central</id>
<repositories>
<repository >
<!-- id必須唯一 -->
<id>maven central_1</id>
<!-- 倉庫的url地址 -->
<url>http://repo2.maven.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<!-- id必須唯一 -->
<id>releases central</id>
<repositories>
<repository>
<!-- id必須唯一 -->
<id>releases central_1</id>
<!-- 倉庫的url地址 -->
<url>http://repo.alibaba-inc.com/nexus/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<!-- id必須唯一 -->
<id>snapshots central</id>
<repositories>
<repository>
<!-- id必須唯一 -->
<id>snapshots central_1</id>
<!-- 倉庫的url地址 -->
<url>http://repo.alibaba-inc.com/nexus/content/repositories/snapshots/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<!-- id必須唯一 -->
<id>thirdparty central</id>
<repositories>
<repository>
<!-- id必須唯一 -->
<id>thirdparty central_1</id>
<!-- 倉庫的url地址 -->
<url>http://repo.alibaba-inc.com/nexus/content/repositories/thirdparty/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<!-- 啟用alibaba central -->
<activeProfile>alibaba central</activeProfile>
<!-- 啟用maven central -->
<activeProfile>maven central</activeProfile>
<!-- 啟用releases central -->
<activeProfile>releases central</activeProfile>
<!-- 啟用snapshots central -->
<activeProfile>snapshots central</activeProfile>
<!-- 啟用thirdparty central -->
<activeProfile>thirdparty central</activeProfile>
</activeProfiles>