[MNG-3863] Maven erroneously assumes "org.apache.maven.plugins" for dependencies without groupId

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@719253 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-11-20 15:25:01 +00:00
parent e046650597
commit d12af86b03
1 changed files with 11 additions and 3 deletions

View File

@ -123,9 +123,17 @@ public final class ArtifactModelContainerFactory
} }
if ( groupId == null ) if ( groupId == null )
{ {
groupId = "org.apache.maven.plugins"; if ( ProjectUri.Build.Plugins.Plugin.xUri.equals( uri )
// throw new IllegalArgumentException("properties does not contain group id. Artifact ID = " || ProjectUri.Build.PluginManagement.Plugins.Plugin.xUri.equals( uri )
// + artifactId + ", Version = " + version); || ProjectUri.Reporting.Plugins.Plugin.xUri.equals( uri ) )
{
groupId = "org.apache.maven.plugins";
}
else
{
throw new IllegalArgumentException( "Properties do not contain group id. Artifact ID = "
+ artifactId + ", Version = " + version );
}
} }
if ( artifactId == null ) if ( artifactId == null )