You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/08/14 17:28:27 UTC
[jira] Updated: (MNG-3539) Report plugins with inherited=false
dropped by profile injector
[ http://jira.codehaus.org/browse/MNG-3539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey updated MNG-3539:
----------------------------
Fix Version/s: (was: 2.0.x)
2.0.11
promoting for fix in 2.0.11.
> Report plugins with inherited=false dropped by profile injector
> ---------------------------------------------------------------
>
> Key: MNG-3539
> URL: http://jira.codehaus.org/browse/MNG-3539
> Project: Maven 2
> Issue Type: Bug
> Components: Inheritance and Interpolation, Profiles
> Affects Versions: 2.0.9
> Reporter: Benjamin Bentmann
> Priority: Minor
> Fix For: 2.0.11
>
> Attachments: MNG-3539.patch, reporting-profile-merge.patch
>
>
> Consider the following POM snippet:
> {code:xml}
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-report-plugin</artifactId>
> <version>2.3</version>
> <inherited>false</inherited>
> </plugin>
> </plugins>
> </reporting>
> <profiles>
> <profile>
> <id>extended-site</id>
> <reporting>
> ... some other plugins but excluding the surefire-report-plugin ....
> </reporting>
> </profile>
> </profiles>
> {code}
> When running "mvn site -P extended-site", the Surefire Report Plugin will be excluded from the site output.
> For some reason, the {{DefaultProfileInjector}} is dropping plugins which have {{inherited=false}}. Inheritance shouldn't matter here, it's all about the same POM, no parent-child play.
> Attached is a unit test to show the failure. An IT will follow now that I have the JIRA ticket.
--
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