[英]Is there a way for maven script to automatically download dependent jars of dependencies i specify in a pom
Is there a way for maven script to automatically download dependent jars of dependencies i specify in a pom ? Maven脚本是否可以自动下载我在pom中指定的依赖罐?
For example i specify the following in my pom.xml , 例如,我在pom.xml中指定以下内容:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
i want a tool that resolves any dependencies that the "spring-core" depends on and update the pom as well as downloaded dependencies. 我想要一个工具来解决“ spring-core”所依赖的所有依赖关系,并更新pom以及下载的依赖关系。 Any ide's / build plugins that do this?
任何ide / build插件都可以做到这一点?
Yes you can download from MAVEN Central repository by specifying central repository location in your maven home. ie .m2/settings.xml
<mirror>
<id>mirrors.dotsrc.org</id>
<name>Mirror of http://repo1.maven.org/maven2/</name>
<url>http://repo1.maven.org/maven2/</url>
<mirrorOf>central2</mirrorOf>
</mirror>
and in your pom add following..
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.3.RELEASE</version>
Please refer.
http://search.maven.org/#search|ga|1|g%3A%22org.springframework%22
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.