From b77af2e2e6fcd6557d56d114ad84e957baa3dd53 Mon Sep 17 00:00:00 2001 From: Britton Isbell Date: Wed, 21 Jan 2009 11:58:50 +0000 Subject: [PATCH] MNG-3985 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@736294 13f79535-47bb-0310-9956-ffa450edef68 --- .../project/builder/PomConstructionTest.java | 8 ++++ .../multiple-repos/pom.xml | 43 ++++++++++++++++++ .../multiple-repos/sub/pom.xml | 45 +++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 maven-project/src/test/resources-project-builder/multiple-repos/pom.xml create mode 100644 maven-project/src/test/resources-project-builder/multiple-repos/sub/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 2e43d2bb47..d339daa610 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 @@ -106,6 +106,14 @@ public class PomConstructionTest assertEquals( 1, ( (List) pom.getValue( "reporting/plugins[1]/reportSets" ) ).size() ); } //*/ + /** MNG-3985 */ + public void testMultipleRepositories() + throws Exception + { + PomTestWrapper pom = buildPom( "multiple-repos/sub" ); + assertEquals( 3, ( (List) pom.getValue( "repositories" ) ).size() ); + } + public void testOrderOfGoalsFromPluginExecutionWithoutPluginManagement() throws Exception diff --git a/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml b/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml new file mode 100644 index 0000000000..6c14fcd035 --- /dev/null +++ b/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml @@ -0,0 +1,43 @@ + + + + + + 4.0.0 + + mng3984 + test-1 + 0.1 + + MNG-3984 + + + central-parent + Maven Repository Switchboard + default + http://repo1.maven.org/maven2 + + false + + + + + + diff --git a/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml b/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml new file mode 100644 index 0000000000..d7b210201a --- /dev/null +++ b/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml @@ -0,0 +1,45 @@ + + + + + + 4.0.0 + + mng3984 + test-1 + 0.1 + + mng3984 + test-2 + 0.1 + + MNG-3984 + + + central-child + Maven Repository Switchboard + default + http://repo1.maven.org/maven2 + + false + + + +