views:

245

answers:

1

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>
+3  A: 

It seems the answer is

<value>!value</value>
izb