// Add plugins in profiles
Iterator it = model.getProfiles().iterator();
while ( it.hasNext() )
{
Profile profile = (Profile) it.next();
try
{
plugins.addAll( PluginWrapper.addAll( profile.getBuild().getPlugins(), model.getId()
+ ".profiles.profile[" + profile.getId() + "].build.plugins" ) );
}
catch ( NullPointerException e )
{
// guess there are no plugins here.
}
try
{
// add the reporting plugins
plugins.addAll( PluginWrapper.addAll( profile.getReporting().getPlugins(), model.getId()
+ "profile[" + profile.getId() + "].reporting.plugins" ) );
}
catch ( NullPointerException e )
{
// guess there are no plugins here.
}
try
{
// add the reporting plugins
plugins.addAll( PluginWrapper.addAll( profile.getBuild().getPluginManagement().getPlugins(),
model.getId() + "profile[" + profile.getId()
+ "].build.pluginManagement.plugins" ) );
}
catch ( NullPointerException e )
{
// guess there are no plugins here.