You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Xavier D. (JIRA)" <ji...@codehaus.org> on 2010/09/17 14:56:32 UTC

[jira] Created: (MPH-79) help:active-profiles does not list active inherited profiles

help:active-profiles does not list active inherited profiles
------------------------------------------------------------

                 Key: MPH-79
                 URL: http://jira.codehaus.org/browse/MPH-79
             Project: Maven 2.x Help Plugin
          Issue Type: Bug
    Affects Versions: 2.2
         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Windows (XP,2003,2008), Java 1.6
            Reporter: Xavier D.
            Priority: Minor


The code fix for http://jira.codehaus.org/browse/MPH-16 appears to have been removed and the test now breaks.

Refer to http://jira.codehaus.org/browse/MPH-16  for the Testcase zip file.

-- 
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] Commented: (MPH-79) help:active-profiles does not list active inherited profiles

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPH-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=261234#action_261234 ] 

Joerg Schaible commented on MPH-79:
-----------------------------------

It is required to document the fact that the activation of the profile in the parent is not inherited. If the parent contains a profile activation like:

{noformat}
<profile>
  <id>demo</id>
  <activation>
    <file>
      <exists>pom.xml</exists>
    </file>
    <!-- parent stuff -->
  </activation>
</profile>
{noformat}

Then the "parent stuff" is active in the child. However, this has no influence on a profile in the child with same id:

{noformat}
<profile>
  <id>demo</id>
  <activation>
    <!-- child stuff -->
  </activation>
</profile>
{noformat}

The "child stuff" is not activated. help:active-profiles does currently not list the active parent profiles, only the ones for settings.xml and the current pom. Therefore help:active-profiles should not say simply "pom" as source, but the GAV of the pom:

{noformat}
$ mvn help:active-profiles
Active Profiles for Project 'G:A:V': 

The following profiles are active:

 - demo (source: pom in G:A:V)
{noformat}

Note, that if the demo had been activated in settings.xml, the "child stuff" would have been active.

> help:active-profiles does not list active inherited profiles
> ------------------------------------------------------------
>
>                 Key: MPH-79
>                 URL: http://jira.codehaus.org/browse/MPH-79
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Windows (XP,2003,2008), Java 1.6
>            Reporter: Xavier D.
>            Priority: Minor
>
> The code fix for http://jira.codehaus.org/browse/MPH-16 appears to have been removed and the test now breaks.
> Refer to http://jira.codehaus.org/browse/MPH-16  for the Testcase zip file.

-- 
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] (MPH-79) help:active-profiles does not list active inherited profiles

Posted by "Andrew Logvinov (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPH-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312517#comment-312517 ] 

Andrew Logvinov commented on MPH-79:
------------------------------------

Also affects version 2.1.1.
                
> help:active-profiles does not list active inherited profiles
> ------------------------------------------------------------
>
>                 Key: MPH-79
>                 URL: https://jira.codehaus.org/browse/MPH-79
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Windows (XP,2003,2008), Java 1.6
>            Reporter: Xavier D.
>            Priority: Minor
>
> The code fix for http://jira.codehaus.org/browse/MPH-16 appears to have been removed and the test now breaks.
> Refer to http://jira.codehaus.org/browse/MPH-16  for the Testcase zip file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPH-79) help:active-profiles does not list active inherited profiles

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MPH-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MPH-79.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.2

Fixed in [r1442405|http://svn.apache.org/viewvc?rev=1442405&view=rev] for Maven3.
With Maven3 this information is available, with Maven2 you have to try to calculate it, and with inheritence you're often wrong.

                
> help:active-profiles does not list active inherited profiles
> ------------------------------------------------------------
>
>                 Key: MPH-79
>                 URL: https://jira.codehaus.org/browse/MPH-79
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>          Components: active-profiles
>    Affects Versions: 2.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Windows (XP,2003,2008), Java 1.6
>            Reporter: Xavier D.
>            Assignee: Robert Scholte
>            Priority: Minor
>             Fix For: 2.2
>
>
> The code fix for http://jira.codehaus.org/browse/MPH-16 appears to have been removed and the test now breaks.
> Refer to http://jira.codehaus.org/browse/MPH-16  for the Testcase zip file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPH-79) help:active-profiles does not list active inherited profiles

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MPH-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte reassigned MPH-79:
---------------------------------

    Assignee: Robert Scholte
    
> help:active-profiles does not list active inherited profiles
> ------------------------------------------------------------
>
>                 Key: MPH-79
>                 URL: https://jira.codehaus.org/browse/MPH-79
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>          Components: active-profiles
>    Affects Versions: 2.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Windows (XP,2003,2008), Java 1.6
>            Reporter: Xavier D.
>            Assignee: Robert Scholte
>            Priority: Minor
>
> The code fix for http://jira.codehaus.org/browse/MPH-16 appears to have been removed and the test now breaks.
> Refer to http://jira.codehaus.org/browse/MPH-16  for the Testcase zip file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPH-79) help:active-profiles does not list active inherited profiles

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MPH-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MPH-79:
------------------------------

    Component/s: active-profiles
    
> help:active-profiles does not list active inherited profiles
> ------------------------------------------------------------
>
>                 Key: MPH-79
>                 URL: https://jira.codehaus.org/browse/MPH-79
>             Project: Maven 2.x Help Plugin
>          Issue Type: Bug
>          Components: active-profiles
>    Affects Versions: 2.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Windows (XP,2003,2008), Java 1.6
>            Reporter: Xavier D.
>            Priority: Minor
>
> The code fix for http://jira.codehaus.org/browse/MPH-16 appears to have been removed and the test now breaks.
> Refer to http://jira.codehaus.org/browse/MPH-16  for the Testcase zip file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira