You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Georges-Etienne Legendre (JIRA)" <ji...@codehaus.org> on 2011/02/21 15:30:22 UTC

[jira] Issue Comment Edited: (MRELEASE-571) When collecting active profiles, the active profiles from parent poms are not considered

    [ http://jira.codehaus.org/browse/MRELEASE-571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257038#action_257038 ] 

Georges-Etienne Legendre edited comment on MRELEASE-571 at 2/21/11 8:29 AM:
----------------------------------------------------------------------------

Here is a test case that reproduces this problem. If you execute "mvn -Pfoo1,foo2,ignored release:prepare", the release plugin ends up with only the "foo1" and "foo2" profiles.

Tested with Maven 2.2.1 and 3.0.2. Same results.

      was (Author: legege):
    Here is a test case that reproduces this problem. If you execute "mvn -Pfoo1,foo2,ignored release:prepare", the release plugin ends up with only the "foo1" and "foo2" profiles.
  
> When collecting active profiles, the active profiles from parent poms are not considered
> ----------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-571
>                 URL: http://jira.codehaus.org/browse/MRELEASE-571
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 2.0
>            Reporter: Lars Corneliussen
>             Fix For: 2.2
>
>         Attachments: 89d9799a56d46d7435d08c94ca538845d7145c9b[1].patch, MRELEASE-571-collect-profiles.patch, profile-ignored-with-module.zip
>
>
> MavenProject.getActiveProfiles() does not return all profiles that are currently run, but instead only those that are run AND defined on the current project.
> This leads to preparation-builds of modules without the specified active profiles derived from their parents.

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