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/12/18 04:14:19 UTC

[jira] Updated: (MNG-3788) Profiles in profiles.xml not activated properly

     [ http://jira.codehaus.org/browse/MNG-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3788:
------------------------------

    Fix Version/s: 2.0.x

> 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