You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/06/13 11:09:13 UTC
[jira] Updated: (MNG-1985) Triggering Profiles bugs
[ http://jira.codehaus.org/browse/MNG-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-1985:
------------------------------
Fix Version/s: (was: 2.0.x)
> 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
>
> =======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