List<MavenProblemInfo> errors = new ArrayList<MavenProblemInfo>();
for ( MojoExecution mojoExecution : executions )
{
SourceLocation location = SourceLocationHelper.findLocation( mojoExecution.getPlugin(), "executions" );
MavenProblemInfo problem =
new MavenProblemInfo( "Duplicate " + mojoExecution.getGoal()
+ " executions found. Please remove any explicitly defined " + mojoExecution.getGoal()
+ " executions in your pom.xml.", IMarker.SEVERITY_ERROR, location );
errors.add( problem );
}