Try changing the dot "." in environment.type to an underscore "_".
That may do it. Not sure -- I didn't test it. Dots can sometimes cause
issues.
Wayne
On 11/14/07, dev dev <[EMAIL PROTECTED]> wrote:
> I have defined 2 project profiles (below) and the goal is to be able
> to run in exclusively in devel or release environment (and not both).
> However, when i run mvn help:active-profiles, i got the below message.
> It should be just "release" and NOT both (devel and release). What did
> you do wrong, is this a bug in Maven2?
>
> Active Profiles for Project
> 'com.mycompany.myproject:myproject-web:pom:1.0.0-SNAPSHOT':
>
> The following profiles are active:
>
> - devel (source: pom)
> - release (source: pom)
>
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>
> <project>
> ...
> <profile>
> <id>release</id>
> <properties>
> <environment.type>release</environment.type>
> </properties>
> <activation>
> <property>
> <name>environment.type</name>
> <value>release</value>
> </property>
> </activation>
> </profile>
>
> <profile>
> <id>devel</id>
> <activation>
> <property>
> <name>!environment.type</name> <!--This profile
> is activated when no ${environment.type} property is set. -->
> </property>
> </activation>
> </profile>
>
> ....
> </project>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]