[ http://jira.codehaus.org/browse/MNG-1882?page=all ]
     
John Casey closed MNG-1882:
---------------------------

      Assign To: John Casey
     Resolution: Fixed
    Fix Version:     (was: 2.0.4)
                 2.0.3

I've verified that <activeByDefault/> works. See it0102 for more information.

Usage:

<project>
  [...]
  <profiles>
    <profile>
      <id>something</id>
       <activation>
         <activeByDefault>true</activeByDefault>
       </activation>
       <properties>
         <name>Bob</name>
       </properties>
     </profile>
    <profile>
      <id>something</id>
       <activation>
         <property>
           <name>user.name</name>
           <value>joe</value>
         </property>
       </activation>
       <properties>
         <name>NotBob</name>
       </properties>
     </profile>
  </profiles>
</project> 

In this case, if the username 'joe' runs the build, then the property "NotBob" 
will be injected. Otherwise, the property "Bob" will be used.

> activeByDefault is ignored in pom.xml
> -------------------------------------
>
>          Key: MNG-1882
>          URL: http://jira.codehaus.org/browse/MNG-1882
>      Project: Maven 2
>         Type: Bug

>   Components: POM
>     Versions: 2.0.1
>     Reporter: Cédric Vidal
>     Assignee: John Casey
>      Fix For: 2.0.3

>
>
> The activation of a profile by the activeByDefault element in pom.xml is 
> ignored. The profile does not get active automatically. As workaround it can 
> be activated with:
> <activation>
>     <jdk>1</jdk>
> </activation>

-- 
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