diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java index 13b91c5bfd..09dd6cc6c7 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java @@ -491,11 +491,14 @@ public class DefaultPluginManager checkPlexusUtils( resolutionGroup, artifactFactory ); - Set dependencies = new LinkedHashSet( resolutionGroup.getArtifacts() ); + Set dependencies = new LinkedHashSet(); - // Also resolve the plugin dependencies specified in : + // resolve the plugin dependencies specified in first: dependencies.addAll( projectPluginDependencies ); + // followed by the plugin's default artifact set + dependencies.addAll( resolutionGroup.getArtifacts() ); + List repositories = new ArrayList(); repositories.addAll( resolutionGroup.getResolutionRepositories() );