Jak*_*ski 7 pom.xml maven maven-profiles
我有一个exec-maven-plugin的配置条目
<configuration>
<executable>compass</executable>
<arguments>
<argument>compile</argument>
<argument>-c</argument>
<argument>config_production.rb</argument>
<argument>--force</argument>
</arguments>
</configuration>
Run Code Online (Sandbox Code Playgroud)
现在在配置文件中我想将此配置与以下内容合并:
<configuration>
<arguments>
<argument>compile</argument>
</arguments>
</configuration>
Run Code Online (Sandbox Code Playgroud)
因为combine.children="merge"是默认我期望有效的配置是:
<configuration>
<executable>compass</executable>
<arguments>
<argument>compile</argument>
</arguments>
</configuration>
Run Code Online (Sandbox Code Playgroud)
但它与原始相同.
是什么赋予了?我试过设置 combine.children="merge"和 combine.self="override"无济于事.
Maven文档仅提到"子POM如何从父POM继承配置",但我希望从配置文件合并以相同的方式工作.
以上结果表明,从配置文件合并的工作方式不同 - 如何?
| 归档时间: |
|
| 查看次数: |
1515 次 |
| 最近记录: |