maven仓库设置
作者:互联网
pom.xml文件设置仓库
<repository>
<id>nexus-aliyun</id>
<name>nexus-aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>cloudera</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
<repository>
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
</repository>
<repository>
<id>spring</id>
<url> https://repo.spring.io/milestone/</url>
</repository>
<repository>
<id>spark-repo</id>
<url>http://dl.bintray.com/spark-packages/maven/</url>
</repository>
maven setting.xml文件配置(指定下载仓库顺序)
<mirror>
<id>nexus-aliyun-center</id>
<mirrorOf>*,!nexus-aliyun,!cloudera,!confluent,!spring,!spark-repo</mirrorOf>
<name>Nexus aliyun</name>
<url>
http://maven.aliyun.com/nexus/content/groups/public
</url>
</mirror>
标签:cloudera,设置,仓库,spring,maven,nexus,aliyun,com 来源: https://blog.csdn.net/qq_16038125/article/details/121457601