码迷,mamicode.com
首页 > 编程语言 > 详细

maven pom.xml jar文件下载

时间:2018-08-22 18:31:13      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:.com   target   exe   name   download   end   1.0   netflix   create   

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/.

maven pom.xml jar文件下载

标签:.com   target   exe   name   download   end   1.0   netflix   create   

原文地址:https://www.cnblogs.com/shefron/p/9519117.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!