Add Maven plugin skip property

This commit is contained in:
Vladimir Kulev 2015-08-28 16:36:46 +03:00
parent 610f4d3c6b
commit d011e6ba90

View File

@ -83,6 +83,12 @@ public class Plugin extends AbstractMojo {
)
private MavenProject project;
/**
* Whether to skip the execution of the Maven Plugin for this module.
*/
@Parameter
private boolean skip;
/**
* The jdbc settings.
*/
@ -97,6 +103,11 @@ public class Plugin extends AbstractMojo {
@Override
public void execute() throws MojoExecutionException {
if (skip) {
getLog().info("Skipping jOOQ code generation");
return;
}
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
try {