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
|
@ -1168,7 +1168,11 @@ public class DefaultPluginManager
|
|||
// check this with yourkit as a hot spot.
|
||||
try
|
||||
{
|
||||
project.setDependencyArtifacts( project.createArtifacts( artifactFactory, null, null ) );
|
||||
// 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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue