我正在开发一个多模块maven项目,它有一个父POM包装,两个war包装模块和两个jar包装模块,
parent
mainWeb(Web)
subweb(Web)
(subApi(Jar))optional true
apI(Jar)
subApi(Jar)
我们使用Spring3 Hibernate4 Struts2
我使用依赖树来获取依赖项详细信息。但是,当我看到生成的战争时,有相同的罐子可用不同的版本。如何找出每个依赖项添加的jar。
答案 0 :(得分:1)
尝试maven-help-plugin:effective-pom
http://maven.apache.org/plugins/maven-help-plugin/effective-pom-mojo.html和maven-dependency-plugin:list
http://maven.apache.org/plugins/maven-dependency-plugin/list-mojo.html