[MPLUGIN-110] Make easier to pass parameters into MojoDescriptorExtractors

o Catched potential linkage error when users update the plugin version but forget the dependencies and provide a more helpful error message

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746796 13f79535-47bb-0310-9956-ffa450edef68
master
Benjamin Bentmann 2009-02-22 18:41:03 +00:00
parent 43d32fdfea
commit 9ebabd646f
1 changed files with 6 additions and 0 deletions

View File

@ -188,5 +188,11 @@ public abstract class AbstractGeneratorMojo
throw new MojoExecutionException( "Error extracting plugin descriptor: \'" + e.getLocalizedMessage() + "\'", throw new MojoExecutionException( "Error extracting plugin descriptor: \'" + e.getLocalizedMessage() + "\'",
e ); e );
} }
catch ( LinkageError e )
{
throw new MojoExecutionException( "The API of the mojo scanner is not compatible with this plugin version."
+ " Please check the plugin dependencies configured in the POM and ensure the versions match.", e );
}
} }
} }