From 085984d0a496cf9722a9c3b5b7ae06b2e2849663 Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Tue, 30 Jun 2020 14:05:46 +0200 Subject: [PATCH] Add skip option to UpdateExtensionDocPageMojo to be able to workaround https://github.com/quarkusio/quarkus/issues/10217 --- .../camel/quarkus/maven/UpdateExtensionDocPageMojo.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java index a37a62d1461a..2af379f5a8e1 100644 --- a/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java +++ b/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java @@ -49,6 +49,7 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Mojo; +import org.apache.maven.plugins.annotations.Parameter; @Mojo(name = "update-extension-doc-page", threadSafe = true) public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo { @@ -57,8 +58,15 @@ public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo { private static List list2; private static final Map nativeSslActivators = new ConcurrentHashMap<>(); + @Parameter(defaultValue = "false", property = "camel-quarkus.update-extension-doc-page.skip") + boolean skip = false; + @Override public void execute() throws MojoExecutionException, MojoFailureException { + if (skip) { + getLog().info("Skipping per user request"); + return; + } final Charset charset = Charset.forName(encoding); final Path basePath = baseDir.toPath();