o Fixed merging of plugin executions

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-05-09 12:15:26 +00:00
parent a5cd3ceb08
commit 0c5208ac25
1 changed files with 5 additions and 5 deletions

View File

@ -474,15 +474,15 @@ public class MavenModelMerger
Map<Object, PluginExecution> merged =
new LinkedHashMap<Object, PluginExecution>( ( src.size() + tgt.size() ) * 2 );
// FIXME: This needs to consider the <inherited> flag. If this is not detected by a UT/IT, we might want to
// create one...
for ( Iterator<PluginExecution> it = src.iterator(); it.hasNext(); )
{
PluginExecution element = it.next();
if ( sourceDominant || ( source.isInherited() && element.isInherited() ) )
{
Object key = getPluginExecutionKey( element );
merged.put( key, element );
}
}
for ( Iterator<PluginExecution> it = tgt.iterator(); it.hasNext(); )
{