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