mirror of https://github.com/apache/maven.git
don't aggregate plugins
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163654 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a1e4f0199
commit
d9a6576761
|
@ -151,23 +151,7 @@ public class DefaultModelInheritanceAssembler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plugins :: aggregate
|
// Plugins are not aggregated
|
||||||
if ( parent.getBuild() != null && child.getBuild() != null )
|
|
||||||
{
|
|
||||||
List parentPlugins = parent.getBuild().getPlugins();
|
|
||||||
|
|
||||||
List childPlugins = child.getBuild().getPlugins();
|
|
||||||
|
|
||||||
for ( Iterator iterator = parentPlugins.iterator(); iterator.hasNext(); )
|
|
||||||
{
|
|
||||||
Plugin plugin = (Plugin) iterator.next();
|
|
||||||
|
|
||||||
if ( !childPlugins.contains( plugin ) )
|
|
||||||
{
|
|
||||||
child.getBuild().addPlugin( plugin );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reports :: aggregate
|
// Reports :: aggregate
|
||||||
if ( child.getReports() != null && parent.getReports() != null )
|
if ( child.getReports() != null && parent.getReports() != null )
|
||||||
|
|
Loading…
Reference in New Issue