【发布时间】:2013-02-13 04:33:49
【问题描述】:
在我的程序集描述符中,我有以下内容:
<dependencySets>
<dependencySet>
<outputDirectory>ext</outputDirectory>
<useTransitiveDependencies>false</useTransitiveDependencies>
<excludes>
<exclude>group1:artifact1:jar:${pom.version}</exclude>
<exclude>group2:artifact2:jar:${pom.version}</exclude>
</excludes>
</dependencySet>
</dependencySets>
当运行 mvn dependency:tree 我得到以下示例:
[INFO] +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile
我想要实现的是我的 ext 文件夹中只有 string-context。当设置 useTransitiveDependencies 如上所述时,ext 目录根本不存在,并且在删除属性时,我的 ext 文件夹中有所有 thress jar。
任何人都知道我可以如何排除 spring-aop 和 aopalliance?
乔纳斯
【问题讨论】:
标签: maven dependencies maven-assembly-plugin