[ http://jira.codehaus.org/browse/MNG-2206?page=comments#action_66705 ]
Edwin Punzalan commented on MNG-2206: ------------------------------------- Olivier, I tried to reproduce in maven 2.0.4 with my settings xml having: {code} <profiles> <profile> <id>dev</id> <properties> <test>dev</test> </properties> </profile> <profile> <id>snapshots</id> <properties> <test>snapshots</test> </properties> </profile> </profiles> {code} but I'm not able to reproduce your error. This may have been fixed in 2.0.4. Below is what I get: {code:title=Using mvn -P dev validate} [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------- --- [INFO] Building Maven [INFO] task-segment: [validate] [INFO] ------------------------------------------------------------------------- --- [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] dev [INFO] Executed tasks [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Tue Jun 06 15:35:29 CST 2006 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ {code} {code:title=Using mvn -P snapshots validate} [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------- --- [INFO] Building Maven [INFO] task-segment: [validate] [INFO] ------------------------------------------------------------------------- --- [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] snapshots [INFO] Executed tasks [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Tue Jun 06 15:35:36 CST 2006 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ {code} > bad properties interpolation with profiles > ------------------------------------------- > > Key: MNG-2206 > URL: http://jira.codehaus.org/browse/MNG-2206 > Project: Maven 2 > Type: Bug > Components: Inheritence and Interpolation > Versions: 2.0.3 > Environment: cygwin > Reporter: Olivier Lamy > Assignee: Edwin Punzalan > Priority: Blocker > Fix For: 2.0.5 > Attachments: pom.xml > > > create two profiles in your settings.xml > - id test with a property <test>dev</test> > - id snapshots with a property <test>snapshots</test> > <activeProfiles> > <activeProfile>dev</activeProfile> > <activeProfile>snapshots</activeProfile> > </activeProfiles> > With the attached pom run : > mvn validate : > [echo] dev > mvn -P snapshots validate : > [echo] dev > Olivier -- 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