From 04833ce76815e7c9f536a7ed81e4952dc50fba8b Mon Sep 17 00:00:00 2001 From: Britton Isbell Date: Wed, 21 Jan 2009 06:20:34 +0000 Subject: [PATCH] MNG-3984 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@736236 13f79535-47bb-0310-9956-ffa450edef68 --- .../project/builder/PomConstructionTest.java | 11 +++- .../join-different-containers-same-id/pom.xml | 66 +++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 maven-project/src/test/resources-project-builder/join-different-containers-same-id/pom.xml 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 + + + + + + +