2
如果我有一個由屬性存在激活的maven配置文件,我怎樣才能定義另一個配置文件,只有當其他配置文件未被激活時才激活?如何在一個maven配置文件和另一個maven配置文件之間切換?
例如
<profile>
<activation>
<property>
<name>myproperty</name>
<value>value</value>
</property>
</activation>
...
</profile>
<profile>
<activation>
<property>
<name>myproperty</name>
<value></value> <!-- Anything other than "value" -->
</property>
</activation>
...
</profile>