diff --git a/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java b/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java index a9a5bfdafa..6f310fdfa4 100644 --- a/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java +++ b/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java @@ -208,7 +208,16 @@ public class PomConstructionTest } //*/ - /* FIXME: cf. MNG-3937 */ + /* MNG-3984*/ + public void testDifferentContainersWithSameId() + throws Exception + { + PomTestWrapper pom = buildPom( "join-different-containers-same-id" ); + assertEquals( 1, ( (List) pom.getValue( "build/plugins[1]/executions[1]/goals" ) ).size() ); + assertEquals( 1, ( (List) pom.getValue( "build/pluginManagement/plugins[1]/executions[1]/goals" ) ).size() ); + } + + /* FIXME: cf. MNG-3937*/ public void testOrderOfMergedPluginExecutionGoalsWithoutPluginManagement() throws Exception { diff --git a/maven-project/src/test/resources-project-builder/join-different-containers-same-id/pom.xml b/maven-project/src/test/resources-project-builder/join-different-containers-same-id/pom.xml new file mode 100644 index 0000000000..b3f48caa3a --- /dev/null +++ b/maven-project/src/test/resources-project-builder/join-different-containers-same-id/pom.xml @@ -0,0 +1,66 @@ + + + + + + 4.0.0 + + mng3984 + test + 0.1 + pom + + MNG-3984 + + + + + + org.apache.maven.its.plugins + maven-it-plugin-b + 1.0-SNAPSHOT + + + foo + + a + + + + + + + + + org.apache.maven.its.plugins + maven-it-plugin-a + 1.0-SNAPSHOT + + + foo + + b + + + + + + +