MNG-3059 Make sure that dependencies listed in plugins are obeyed

Submitted by: Eric Redmond


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@548228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2007-06-18 06:10:00 +00:00
parent c3272e9284
commit fc40bd04a6
1 changed files with 5 additions and 2 deletions

View File

@ -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 <plugin><dependencies>:
// resolve the plugin dependencies specified in <plugin><dependencies> first:
dependencies.addAll( projectPluginDependencies );
// followed by the plugin's default artifact set
dependencies.addAll( resolutionGroup.getArtifacts() );
List repositories = new ArrayList();
repositories.addAll( resolutionGroup.getResolutionRepositories() );