Hi,

is there any possibility to activate a Maven profile if a system property has 
either value "A" OR value "B" but NOT if it has value "C"?

Unfortunately it is neither allowed to specify multiple "value" entries like 
this:

        <profile>
                <id>playground</id>
                <activation>
                        <property>
                                <name>myProp</name>
                                <value>A</value>
                                <value>B</value>
                        </property>
                </activation>
        </profile>

Nor to specify more than one "property" element like this:

        <profile>
                <id>playground</id>
                <activation>
                        <property>
                                <name>myProp</name>
                                <value>A</value>
                        </property>
                        <property>
                                <name>myProp</name>
                                <value>B</value>
                        </property>
                </activation>
        </profile>

I also tried all kind of separators in the "value" value (e.g. 
<value>A,B</value> or <value>A;B</value>), however, nothing seems to work.

If it is not supported now, is there any chance that it will be supported in a 
future Maven version?

Thanks in advance,
Jörn

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to