[
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