{
File f = getPomFile( getBuildFileForProject( continuumProject, buildDefinition ), workingDirectory );
if ( !f.exists() )
{
throw new ContinuumBuildExecutorException( "Could not find Maven project descriptor '" + f + "'." );
}
MavenProject project;
ContinuumProjectBuildingResult result = new ContinuumProjectBuildingResult();
project = builderHelper.getMavenProject( result, f );
if ( result.hasErrors() )
{
throw new ContinuumBuildExecutorException(
"Unable to read the Maven project descriptor '" + f + "': " + result.getErrorsAsString() );
}
// Maven could help us out a lot more here by knowing how to get the deployment artifacts from a project.
// TODO: this is currently quite lame