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

Eric Redmond commented on MNG-2206:
-----------------------------------

Firstly, he means to create a profile with id "dev", not "test".

Also, this defect only presents itself if you set an activation of 
activeByDefault to true.
activeByDefault seems to hold a little too much power here. It does not honor 
the -P flag.

If you remove "activeByDefault", then snapshot will win, as expected.


> 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

Reply via email to