[MNG-4050] - Disabled empty URL check. Failure here is correct behavior, breaks backward compatibility.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@747991 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2009-02-26 02:47:45 +00:00
parent dc43d5412f
commit fac6e8c96d
1 changed files with 5 additions and 2 deletions

View File

@ -307,7 +307,10 @@ public class LegacyMavenRepositorySystem
{
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 @@ public class LegacyMavenRepositorySystem
{
throw new InvalidRepositoryException( "Repository URL must not be empty (ID is: " + id + ").", id );
}
*/
ArtifactRepositoryPolicy snapshots = buildArtifactRepositoryPolicy( repo.getSnapshots() );
ArtifactRepositoryPolicy releases = buildArtifactRepositoryPolicy( repo.getReleases() );