【发布时间】:2014-04-21 22:16:37
【问题描述】:
我有一个父 pom A 和子 pom B、C 和 D。在 B、C 和 D 中,我有相同类型的依赖项。
即 父绒球
<artifactID>blah</artifactID>
<modules>
<module>B</module>
<module>C</module>
<module>D</module>
</modules>
子 Pom
<dependencies>
<dependency>
.
.
<scope>test</scope>
<type>test-jar</type>
</dependency>
</dependencies>
到目前为止,我已尝试编辑 plugin-surefire,但在尝试排除子 pom 的测试范围时不起作用。
我的问题是,是否有办法将配置文件添加到父 pom 以排除所有子 pom 的类型为 test-jar 的所有依赖项。 谢谢
【问题讨论】:
-
您是否正在寻找一种方法来做到这一点而不指定每一个?
-
是否可以选择将配置文件放入使用测试罐的子 pom 中,而父 pom 不使用此配置文件?
标签: maven dependencies pom.xml