[
https://jira.codehaus.org/browse/MNG-3539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict updated MNG-3539:
-------------------------------
Fix Version/s: (was: Issues to be reviewed for 3.x)
> Report plugins with inherited=false dropped by profile injector
> ---------------------------------------------------------------
>
> Key: MNG-3539
> URL: https://jira.codehaus.org/browse/MNG-3539
> Project: Maven
> Issue Type: Bug
> Components: Inheritance and Interpolation, Profiles
> Affects Versions: 2.0.9
> Reporter: Benjamin Bentmann
> Priority: Minor
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)