1、setting.xml配置
<mirrors>
<!-- 阿里云仓库 -->
<mirror>
<id>aliyun</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<!--*,!cloudera 表示,除了cloudera.repo,其他都使用使用阿里云仓库。-->
<mirror>
<id>cloudera</id>
<mirrorOf>*,!cloudera</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</mirror>
</mirrors>
2、pom.xml配置
<repositories>
<!-- 指定该项目可以从哪些地方下载依赖包 -->
<repository>
<id>aliyun</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
<repository>
<id>cloudera</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
</repositories>
标签:cloudera,nexus,repos,maven,aliyun,镜像,com
From: https://www.cnblogs.com/hbym/p/17338424.html