Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.9
-
Fix Version/s: Issues to be reviewed for 3.x
-
Component/s: Inheritance and Interpolation, Profiles
-
Labels:None
-
Complexity:Intermediate
-
Testcase included:yes
Description
Consider the following POM snippet:
<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>
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.
Issue Links
- relates to
-
MNG-3700
ModelUtils.clone doesn't clone plugin entries where inherited == false
-
Failing IT