[ 
http://jira.codehaus.org/browse/MNG-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brett Porter closed MNG-3777.
-----------------------------

      Assignee: Brett Porter
    Resolution: Cannot Reproduce

pasted this exactly into a POM and under 2.0.8, 2.0.9, 2.1.0-M1 the properties 
in the respective profiles are used according to -Denv (with prod being the 
default)

> 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
>            Assignee: Brett Porter
>
> 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