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