【发布时间】:2014-04-09 16:43:39
【问题描述】:
我有 maven 项目并假设它看起来像那样
pom-parent
--pom child1
--pom child2
- 在 pom parent 中,我在默认构建中为
surfire plugin定义了插件配置。 在 pom parent 中,我使用surfire plugin定义了配置文件integration-test,但配置不同。 - 在 childs pom 中,我在默认构建(不在配置文件部分)中覆盖
surfire plugin的配置,方法是在配置标签默认构建(不在配置文件部分)中添加combine.self。
我的问题是,如果我运行mvn clean install -Pintegration-test,每个级别上的surfire plugin 的配置会被应用吗?
- pom parent =>(默认还是来自配置文件?) pom
- pom child1 =>(profile 默认子配置会覆盖配置吗?)
- pom child2 =>(与 child1 相同?)
【问题讨论】: