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>