You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Samuel Santos (JIRA)" <ji...@codehaus.org> on 2009/03/16 13:27:13 UTC
[jira] Created: (MNG-4088) settings.xml profiles are executed after
project profiles
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
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
[jira] Closed: (MNG-4088) [regression] settings.xml profiles are
executed after project profiles
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Updated: (MNG-4088) settings.xml profiles are executed after
project profiles
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-4088:
------------------------------
Fix Version/s: 2.0.11
> 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
> Priority: Critical
> Fix For: 2.0.11
>
>
> 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
[jira] Updated: (MNG-4088) [regression] settings.xml profiles are
executed after project profiles
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-4088:
------------------------------
Summary: [regression] settings.xml profiles are executed after project profiles (was: settings.xml profiles are executed after project profiles)
haven't yet confirmed
> [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
> Priority: Critical
> Fix For: 2.0.11
>
>
> 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