mirror of https://github.com/apache/maven.git
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:
parent
a5cd3ceb08
commit
0c5208ac25
|
@ -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(); )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue