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