o Fixed plugin management injection

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@764226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-04-11 18:05:46 +00:00
parent e8e1d53e14
commit d3f76d80c0
2 changed files with 5 additions and 6 deletions

View File

@ -161,7 +161,6 @@ public class DefaultLifecycleBindingManager
for ( Iterator it = plugins.iterator(); it.hasNext(); )
{
Plugin plugin = (Plugin) it.next();
BindingUtils.injectPluginManagementInfo( plugin, project );
PluginDescriptor pluginDescriptor = null;

View File

@ -153,14 +153,14 @@ public class PluginsManagementProcessor extends BaseProcessor
target.setId( source.getId() );
}
if(target.getInherited() == null)
if ( target.getInherited() == null )
{
source.setInherited( target.getInherited() );
target.setInherited( source.getInherited() );
}
if(target.getPhase() != null)
if ( target.getPhase() == null )
{
source.setPhase( target.getPhase() );
target.setPhase( source.getPhase() );
}
List<String> goals = new ArrayList<String>(target.getGoals());