Come alternare un profilo maven e un altro?
-
03-07-2019 - |
Domanda
Se ho un profilo maven attivato dalla presenza di una proprietà, come posso definire un altro profilo che viene attivato solo quando l'altro profilo non è attivato?
per es.
<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>
Soluzione
Sembra che la risposta sia
<value>!value</value>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow