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>
上一篇:案例:归档自动清理脚本失效及连带影响


下一篇:Linux ./configure && make && make install 编译安装和卸载