maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1172229 - in /maven/maven-3/trunk/maven-core/src: main/java/org/apache/maven/repository/RepositorySystem.java test/java/org/apache/maven/project/PomConstructionTest.java
Date Sun, 18 Sep 2011 09:14:59 GMT
Author: hboutemy
Date: Sun Sep 18 09:14:58 2011
New Revision: 1172229

URL: http://svn.apache.org/viewvc?rev=1172229&view=rev
Log:
[MNG-5151] updated constants to match the modification and added a unit-test

Modified:
    maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java
    maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

Modified: maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java?rev=1172229&r1=1172228&r2=1172229&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java
(original)
+++ maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/repository/RepositorySystem.java
Sun Sep 18 09:14:58 2011
@@ -51,7 +51,7 @@ public interface RepositorySystem
 
     final String DEFAULT_REMOTE_REPO_ID = "central";
 
-    final String DEFAULT_REMOTE_REPO_URL = "http://repo1.maven.org/maven2";
+    final String DEFAULT_REMOTE_REPO_URL = "http://repo1.maven.apache.org/maven2";
 
     Artifact createArtifact( String groupId, String artifactId, String version, String packaging
);
 

Modified: maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java?rev=1172229&r1=1172228&r2=1172229&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
(original)
+++ maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
Sun Sep 18 09:14:58 2011
@@ -1248,6 +1248,13 @@ public class PomConstructionTest
         assertEquals( "org.apache.maven.its", pom.getValue( "dependencies[1]/exclusions[1]/groupId"
) );
         assertEquals( "excluded-dep", pom.getValue( "dependencies[1]/exclusions[1]/artifactId"
) );
 
+        assertEquals( 2, ( (List<?>) pom.getValue( "repositories" ) ).size() );
+        assertEquals( "project-remote-repo", pom.getValue( "repositories[1]/id" ) );
+        assertEquals( "http://project.url/remote", pom.getValue( "repositories[1]/url" )
);
+        assertEquals( "repo", pom.getValue( "repositories[1]/name" ) );
+        assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_ID, pom.getValue( "repositories[2]/id"
) );
+        assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_URL, pom.getValue( "repositories[2]/url"
) );
+
         assertEquals( "test", pom.getValue( "build/defaultGoal" ) );
         assertEquals( "coreit", pom.getValue( "build/finalName" ) );
 



Mime
View raw message