PR: MNG-917

don't overwrite dependency artifacts if they were already created

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-21 07:36:39 +00:00
parent e88e09c282
commit 965dda3fbf
1 changed files with 5 additions and 1 deletions

View File

@ -1167,9 +1167,13 @@ public class DefaultPluginManager
// TODO: we don't need to resolve over and over again, as long as we are sure that the parameters are the same
// check this with yourkit as a hot spot.
try
{
// Don't recreate if already created - for effeciency, and because clover plugin adds to it
if ( project.getDependencyArtifacts() == null )
{
project.setDependencyArtifacts( project.createArtifacts( artifactFactory, null, null ) );
}
}
catch ( InvalidVersionSpecificationException e )
{
throw new ArtifactResolutionException( "Error in dependency version", e );