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:
Britton Isbell 2008-09-10 05:27:39 +00:00
parent 9d4416df7f
commit 65b674f15c
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}