mirror of https://github.com/apache/maven.git
[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:
parent
dc43d5412f
commit
fac6e8c96d
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue