// ----------------------------------------------------------------------
List messages;
try {
messages = compiler.compile(compilerConfiguration);
} catch (Exception e) {
// TODO: don't catch Exception
throw new MojoExecutionException("Fatal error compiling", e);
}