[ 
http://jira.codehaus.org/browse/MNG-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149450#action_149450
 ] 

Wendy Smoak commented on MNG-3777:
----------------------------------

What happens if you enable the first profile with -Penv-dev instead, is 
env-prod still active?

I would not use activeByDefault, and instead activate env-prod on the *absence* 
of the env property with <name>!env</name>

> ActiveByDefault does not work properly
> --------------------------------------
>
>                 Key: MNG-3777
>                 URL: http://jira.codehaus.org/browse/MNG-3777
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.8
>            Reporter: Christopher Roland B. Basmayor
>
> I've been working for profiles and it appears that the configuration below 
> does not work too well. Profile env-prod is invoked even when the property 
> 'env' with value 'dev' is provided.
>       <profiles>
>               <profile>
>                       <id>env-dev</id>
>                       <activation>
>                               <property>
>                                       <name>env</name>
>                                       <value>dev</value>
>                               </property>
>                       </activation>
>                       <properties>
>                               [...]
>                       </properties>
>               </profile>
>               <profile>
>                       <id>env-prod</id>
>                       <activation>
>                               <activeByDefault>true</activeByDefault>
>                       </activation>
>                       <properties>
>                               [...]
>                       </properties>
>               </profile>
>       </profiles>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to