maven pom.xml jar文件下载

If you need to download the jars instead of using a build system, create a Maven pom file like this with the desired version:

<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.netflix.zuul.download</groupId>
	<artifactId>zuul-download</artifactId>
	<version>1.0-SNAPSHOT</version>
	<name>Simple POM to download zuul-core and dependencies</name>
	<url>http://github.com/Netflix/zuul</url>
	<dependencies>
		<dependency>
			<groupId>com.netflix.zuul</groupId>
			<artifactId>zuul-core</artifactId>
			<version>1.0.0</version>
			<scope/>
		</dependency>
	</dependencies>
</project>

 

Then execute:

mvn -f download-zuul-pom.xml dependency:copy-dependencies

 

It will download zuul-core-*.jar and its dependencies into ./target/dependency/.

posted @ 2018-08-22 17:28  鱼泽弋海  阅读(1864)  评论(0编辑  收藏  举报