aliyun不存在,则使用其它地址
setting.xml配置
<mirrors>
<!-- alimaven -->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<!--除了confluentRepo之外其它都走阿里云-->
<mirrorOf>*,!confluentRepo</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>confluent</id>
<repositories>
<repository>
<id>confluentRepo</id>
<url>https://packages.confluent.io/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>aliyun-plugin</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!-- 激活confluent-->
<activeProfile>confluent</activeProfile>
</activeProfiles>
idea配置勾选