maven脚本是否有办法自动下载我在pom中指定的依赖jar依赖项?
例如,我在我的pom.xml中指定了以下内容,
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
我想要一个工具来解决&#34; spring-core&#34;的所有依赖关系。取决于并更新pom以及下载的依赖项。 这样做的任何ide / build插件?
答案 0 :(得分:0)
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