You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bocalinda <bo...@gmail.com> on 2009/05/11 18:16:19 UTC

Profile activation using multiple properties

Hi List,

Stating from the Maven Definitive Guide:

"Activations can contain one of more selectors including JDK versions,
Operating
System parameters, files, and properties. A profile is activated when all
activation
criteria has been satisfied."

Unfortunately, it seems that is is not possible to specify the same criteria
twice, i.e.:

<profile>
            <id>integracion_continua</id>
            <activation>
                <property>
                    <name>env.HUDSON_SERVER</name>
                </property>
                <property>
                    <name>launch_cargo</name>
                    <value>true</value>
                </property>
            </activation>

It complains that there is a duplicate tag 'property'.

Although this is more a suggestion than a question, I'm open for alternative
solutions for what I want to do

TIA.