例如,POM 依赖声明(这仅用于演示目的,而不是我的实际代码):
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>..</dependency>
<dependency>..</dependency>
我的程序集依赖集描述符:
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<includes>
<include>*:jar</include>
</includes>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
</dependencySets>
据我观察,该程序集将有额外的罐子(传递性)logback-classic
我的 POM 依赖项不会。如何使程序集解析与 POM 相同的 jar?如果可能的话,我不想在程序集中再次重复排除dependencySets
.
注意:我正在使用Maven 3.2.3
in Windows 8.1
运行于Java 6
.
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)