You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by si...@apache.org on 2009/01/21 12:58:51 UTC

svn commit: r736294 - in /maven/components/trunk/maven-project/src/test: java/org/apache/maven/project/builder/ resources-project-builder/multiple-repos/ resources-project-builder/multiple-repos/sub/

Author: sisbell
Date: Wed Jan 21 03:58:50 2009
New Revision: 736294

URL: http://svn.apache.org/viewvc?rev=736294&view=rev
Log:
MNG-3985

Added:
    maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/
    maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml
    maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/sub/
    maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml
Modified:
    maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java

Modified: maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java?rev=736294&r1=736293&r2=736294&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java (original)
+++ maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java Wed Jan 21 03:58:50 2009
@@ -106,6 +106,14 @@
         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

Added: maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml?rev=736294&view=auto
==============================================================================
--- maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml (added)
+++ maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/pom.xml Wed Jan 21 03:58:50 2009
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>mng3984</groupId>
+    <artifactId>test-1</artifactId>
+    <version>0.1</version>
+
+    <name>MNG-3984</name>
+   <repositories>
+     <repository>
+       <id>central-parent</id>
+       <name>Maven Repository Switchboard</name>
+       <layout>default</layout>
+       <url>http://repo1.maven.org/maven2</url>
+       <snapshots>
+         <enabled>false</enabled>
+       </snapshots>
+     </repository>
+   </repositories>
+
+
+</project>

Added: maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml?rev=736294&view=auto
==============================================================================
--- maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml (added)
+++ maven/components/trunk/maven-project/src/test/resources-project-builder/multiple-repos/sub/pom.xml Wed Jan 21 03:58:50 2009
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <parent>
+    <groupId>mng3984</groupId>
+    <artifactId>test-1</artifactId>
+    <version>0.1</version>
+   </parent>
+   <groupId>mng3984</groupId>
+   <artifactId>test-2</artifactId>
+   <version>0.1</version>
+
+   <name>MNG-3984</name>
+  <repositories>
+    <repository>
+      <id>central-child</id>
+      <name>Maven Repository Switchboard</name>
+      <layout>default</layout>
+      <url>http://repo1.maven.org/maven2</url>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+</project>