[ http://jira.codehaus.org/browse/MNG-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160165#action_160165 ]
Alejandro Scandroli commented on MNG-3788: ------------------------------------------ I can confirm the issue and it's very easy to test just type: mvn help:active-profiles -P conwebDev and you will see that all the profiles in the profiles.xml are active. > Profiles in profiles.xml not activated properly > ----------------------------------------------- > > Key: MNG-3788 > URL: http://jira.codehaus.org/browse/MNG-3788 > Project: Maven 2 > Issue Type: Bug > Components: Profiles > Affects Versions: 2.0.9 > Environment: Windows XP Professional > Reporter: Walt Barrow > Fix For: 2.0.x > > > I created a profiles.xml file with three profiles in it as shown below. When > I execute a Maven command like: > >mvn -f <path-to-basedir>\pom.xml -PconwebDev ... > the properties defined by profile conwebFinal are used. I shuffled the > profiles around in the file and whichever one was defined last was the one > whose values took effect. It seems as if all profiles are being activated > and the last one wins. > When I put these same profiles in settings.xml or inside the main pom.xml, > everything works properly. > Here are the profiles: > <profiles> > <!-- conweb Project-specific profiles --> > <profile> > <id>conwebDev</id> > <properties> > <app.properties>conweb.properties</app.properties> > <app.version.qualifier>DEV</app.version.qualifier> > </properties> > </profile> > > <profile> > <id>conwebTest</id> > <properties> > <app.properties>conweb.properties</app.properties> > <app.version.qualifier>TEST</app.version.qualifier> > </properties> > </profile> > <profile> > <id>conwebFinal</id> > <properties> > <app.properties>conweb.properties</app.properties> > <app.version.qualifier>FINAL</app.version.qualifier> > </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