mirror of https://github.com/apache/maven.git
Fix: MavenProject.pluginArtifacts now returns empty set, rather than null. This was causing maven-project-info-reports-plugin to fail.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@693707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d4416df7f
commit
65b674f15c
|
@ -1294,7 +1294,7 @@ public class MavenProject
|
|||
{
|
||||
return pluginArtifacts;
|
||||
}
|
||||
Set pa = new HashSet();
|
||||
pluginArtifacts = new HashSet();
|
||||
if ( artifactFactory != null )
|
||||
{
|
||||
List plugins = getBuildPlugins();
|
||||
|
@ -1320,16 +1320,15 @@ public class MavenProject
|
|||
}
|
||||
catch ( InvalidVersionSpecificationException e )
|
||||
{
|
||||
return pa;
|
||||
return pluginArtifacts;
|
||||
}
|
||||
|
||||
if ( artifact != null )
|
||||
{
|
||||
pa.add( artifact );
|
||||
pluginArtifacts.add( artifact );
|
||||
}
|
||||
}
|
||||
}
|
||||
pluginArtifacts = pa;
|
||||
pluginArtifactMap = null;
|
||||
return pluginArtifacts;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue