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>
È stato utile?

Soluzione

Sembra che la risposta sia

<value>!value</value>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top