{
File f = getPomFile( getBuildFileForProject( project, buildDefinition ), workingDirectory );
if ( !f.exists() )
{
throw new ContinuumBuildExecutorException( "Could not find Maven project descriptor." );
}
ContinuumProjectBuildingResult result = new ContinuumProjectBuildingResult();
boolean update = isDescriptionUpdated( buildDefinition, scmResult, project );
builderHelper.mapMetadataToProject( result, f, project, update );
if ( result.hasErrors() )
{
throw new ContinuumBuildExecutorException( "Error while mapping metadata:" + result.getErrorsAsString() );
}
}