diff --git a/drift-maven-plugin/src/main/java/io/airlift/drift/maven/IdlGeneratorMojo.java b/drift-maven-plugin/src/main/java/io/airlift/drift/maven/IdlGeneratorMojo.java index 0a434b32a..a792e4795 100644 --- a/drift-maven-plugin/src/main/java/io/airlift/drift/maven/IdlGeneratorMojo.java +++ b/drift-maven-plugin/src/main/java/io/airlift/drift/maven/IdlGeneratorMojo.java @@ -100,10 +100,18 @@ public class IdlGeneratorMojo @Parameter private boolean quiet; + @Parameter(property = "drift.skip", defaultValue = "false") + private boolean skip; + @Override public void execute() throws MojoExecutionException { + if (skip) { + getLog().info("Drift IDL generation is skipped."); + return; + } + ClassLoader classLoader = createClassLoaderFromCompileTimeDependencies(); ThriftIdlGeneratorConfig config = ThriftIdlGeneratorConfig.builder()