[ http://jira.codehaus.org/browse/MNG-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl closed MNG-1985. ------------------------------ Resolution: Fixed This is the correct behavior. When you have a profile that is activeByDefault it means that it will be knocked out once another profile is activated. This profile is used when no other profiles are activated. And profile chaining is not supported. > Triggering Profiles bugs > ------------------------ > > Key: MNG-1985 > URL: http://jira.codehaus.org/browse/MNG-1985 > Project: Maven 2 > Issue Type: Bug > Components: Profiles > Affects Versions: 2.0.2 > Environment: windows2000 maven 2.02 > Reporter: pinghe > Priority: Critical > Fix For: 2.0.x > > > =======env 1, > inside pom.xml > <profiles> > <profile> > <id>env-common</id> > <activation> > <activeByDefault>true</activeByDefault> > </activation> > </profile> > <profile> > <id>os-win32</id> > <activation> > <activeByDefault>true</activeByDefault> > <!--os> > <family>windows</family> > </os--> > <property> > <name>performRelease</name> > </property> > </activation> > </profile> > <profile> > <id>env-prod</id> > <activation> > <property> > <name>performRelease</name> > </property> > </activation> > </profile> > </profiles> > exec: mvn projecthelp:active-profiles > output: > - env-common (source: pom) > - os-win32 (source: pom) > exec: mvn projecthelp:active-profiles -DperformRelease > output: > - env-prod (source: pom) > - os-win32 (source: pom) > expect: > - env-prod (source: pom) > - os-win32 (source: pom) > - env-common (source: pom) > =======env 2: > inside pom.xml > <profiles> > <profile> > <id>env-common</id> > <activation> > <activeByDefault>true</activeByDefault> > </activation> > </profile> > <profile> > <id>os-win32</id> > <activation> > <activeByDefault>true</activeByDefault> > <os> > <family>windows</family> > </os> > <property> > <name>performRelease</name> > </property> > </activation> > </profile> > <profile> > <id>env-prod</id> > <activation> > <property> > <name>performRelease</name> > </property> > </activation> > </profile> > </profiles> > exec: mvn projecthelp:active-profiles > output: > - os-win32 (source: pom) > expect: > - env-prod (source: pom) > - os-win32 (source: pom) -- 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