getLog().info( "Running Generator for" );
for ( File domainClassSourceFile : domainClassSourceFiles ) {
getLog().info( "\t" + domainClassSourceFile.getPath() );
}
GeneratorConfiguration configuration = new GeneratorConfiguration( domainClassSourceFiles, outputDirectory, resourcesOutputDirectory, testOutputDirectory, testResourcesOutputDirectory, printWriter, GeneratorConfiguration.CreationMode.get( createSerializers, createTests ) );
new StaxMateGenerator().run( configuration );
} catch ( Exception e ) {
throw new MojoExecutionException( "Generation failed due to: " + e.getMessage(), e );
} finally {
printWriter.close();
}