我有一个 exec-maven-plugin 的配置条目
<configuration>
<executable>compass</executable>
<arguments>
<argument>compile</argument>
<argument>-c</argument>
<argument>config_production.rb</argument>
<argument>--force</argument>
</arguments>
</configuration>
现在在配置文件中,我想将此配置与以下内容合并:
<configuration>
<arguments>
<argument>compile</argument>
</arguments>
</configuration>
因为combine.children="merge"
是默认值,我希望有效的配置是:
<configuration>
<executable>compass</executable>
<arguments>
<argument>compile</argument>
</arguments>
</configuration>
但它与原版相同。
是什么赋予了?我试过设置 combine.children="merge"
, combine.self="override"
但无济于事。
Maven 文档只提到“子 POM 如何从父 POM 继承配置”,但我希望从配置文件中合并以相同的方式工作。
以上结果表明从配置文件合并的工作方式不同 - 如何?