If I have a maven profile activated by the presence of a property, how can I define another profile that is only activated when the other profile is not activated?
e.g.
<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>
It seems the answer is
<value>!value</value>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With