Add Maven plugin skip property
This commit is contained in:
parent
610f4d3c6b
commit
d011e6ba90
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user