[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-ffa450edef68master
parent
43d32fdfea
commit
9ebabd646f
|
|
@ -188,5 +188,11 @@ public abstract class AbstractGeneratorMojo
|
|||
throw new MojoExecutionException( "Error extracting plugin descriptor: \'" + e.getLocalizedMessage() + "\'",
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue