You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kenney Westerhof (JIRA)" <ji...@codehaus.org> on 2006/05/20 18:13:41 UTC

[jira] Commented: (MNG-2206) bad properties interpolation with profiles

    [ http://jira.codehaus.org/browse/MNG-2206?page=comments#action_65638 ] 

Kenney Westerhof commented on MNG-2206:
---------------------------------------

I don't see any 'activeByDefault' in the issue description.

If you activate both profiles then currently they're both activated, which is correct.
However, the order in which they're activated is random.

If you activate the 'dev' profile by default, and remove the 'snapshots' profile, then dev is always
activated. If you then specify -Psnapshots it should override the <test> property with the new value 'snapshots'.

But since this is random, the OS/jdk combination determines which one wins.

Is this a correct explanation of the above problem? 

> 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
>     Priority: Blocker
>  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