olamy/plexus-compiler — pull request #1 by aeisenberg (2012-10-30 18:37:10+00:00)
Title: Ensure 2.x changes are backwards compatible.

These changes make the 2.x branch compatible with maven-compiler-plugin 2.x. maven-compiler-plugin 3.x must make changes to AbstractCompilerMojo to call both variants of the compile method. Eg, something like this:

CompilerResult compilerResult;
try
{
try
{
compilerResult = compiler.performCompile( compilerConfiguration );
}
catch (CompilerNotImplementedException cnie)
{
messages = compiler.compile( compilerConfiguration );
compilerResult = makeCompilerResult(messages);
}
}
catch ( Exception e )
{
// TODO: don't catch Exception
throw new MojoExecutionException( "Fatal error compiling", e );
}

I renamed the new compile method to performCompile, but I am not too happy with the name. Perhaps you can find a better one.