for ( GoalWithConf report : goalsWithConfiguration )
{
MojoDescriptor mojoDescriptor = pluginDescriptor.getMojo( report.getGoal() );
if ( mojoDescriptor == null )
{
throw new MojoNotFoundException( report.getGoal(), pluginDescriptor );
}
MojoExecution mojoExecution = new MojoExecution( plugin, report.getGoal(), "report:" + report.getGoal() );
mojoExecution.setMojoDescriptor( mojoDescriptor );