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/02/26 03:47:45 UTC

svn commit: r747991 - /maven/components/trunk/maven-project/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java

Author: sisbell
Date: Thu Feb 26 02:47:45 2009
New Revision: 747991

URL: http://svn.apache.org/viewvc?rev=747991&view=rev
Log:
[MNG-4050] - Disabled empty URL check. Failure here is correct behavior, breaks backward compatibility.

Modified:
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java?rev=747991&r1=747990&r2=747991&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java Thu Feb 26 02:47:45 2009
@@ -307,7 +307,10 @@
         {
             String id = repo.getId();
             String url = repo.getUrl();
-
+            /*
+            MNG-4050: Temporarily disabled this check since it is breaking the bootstrap unit tests on commons-parent pom
+             */
+            /*
             if ( id == null || id.trim().length() < 1 )
             {
                 throw new InvalidRepositoryException( "Repository ID must not be empty (URL is: " + url + ").", url );
@@ -317,7 +320,7 @@
             {
                 throw new InvalidRepositoryException( "Repository URL must not be empty (ID is: " + id + ").", id );
             }
-
+            */
             ArtifactRepositoryPolicy snapshots = buildArtifactRepositoryPolicy( repo.getSnapshots() );
 
             ArtifactRepositoryPolicy releases = buildArtifactRepositoryPolicy( repo.getReleases() );