Maven2-如何列出Pom文件中的所有资源库URL [英] maven2 - how to list all resources repository url from pom file
本文介绍了Maven2-如何列出Pom文件中的所有资源库URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找这样的东西:
I'm looking for something like this:
List<URL> urls = listURLFromPOM("c:\pom.xml");
..
http://repo1.maven.org/maven2/org/apache/ibatis/ibatis-core/3.0/ibatis-core-3.0.jar
http://repo1.maven.org/maven2/org/apache/camel/camel-activemq/1.1.0/camel-activemq-1.1.0.jar
...
推荐答案
You can use the Maven Dependency Plugin to analyze the dependencies of you POM.
mvn dependency:list -DoutputAbsoluteArtifactFilename=true -DoutputFile=dependencies.txt
这篇关于Maven2-如何列出Pom文件中的所有资源库URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文