maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MNG-4088) [regression] settings.xml profiles are executed after project profiles
Date Tue, 24 Mar 2009 14:38:12 GMT

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

Benjamin Bentmann closed MNG-4088.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Duplicate
    Fix Version/s:     (was: 2.0.11)

AFAICT, the section in the guide actually never worked. Profile activation by property is
currently limited to CLI properties and there is already an issue for activation from settings
properties (MNG-2276). From my testing, this is no regression as simply no available Maven
version ever supported this.

For the record: "execution" of a profile is a misleading term for profile handling. One would
like the collection of properties from the settings.xml for activation of other profiles to
happen first, but the injection of a settings profile into the POM should still happen last
to ensure the user settings can override POM defaults.

> [regression] settings.xml profiles are executed after project profiles
> ----------------------------------------------------------------------
>
>                 Key: MNG-4088
>                 URL: http://jira.codehaus.org/browse/MNG-4088
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Profiles
>    Affects Versions: 2.0.10
>         Environment: Windows, Linux
>            Reporter: Samuel Santos
>            Assignee: Benjamin Bentmann
>            Priority: Critical
>
> Examples like the one at http://www.sonatype.com/books/maven-book/reference/profiles-sect-tips-tricks.html
do not work anymore.
> The active profiles output is:
> $ mvn help:active-profiles
> Active Profiles for Project 'My Project':
> The following profiles are active:
>  - my-internal-profile (source: pom.xml)
>  - my-external-profile (source: profiles.xml)
>  - my-settings-profile (source: settings.xml)
> instead of:
> $ mvn help:active-profiles
> Active Profiles for Project 'My Project':
> The following profiles are active:
>  - my-settings-profile (source: settings.xml)
>  - my-external-profile (source: profiles.xml)
>  - my-internal-profile (source: pom.xml)

-- 
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

        

Mime
View raw message