diff --git a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/AbstractRegistryMojo.java b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/AbstractRegistryMojo.java index 9b070557b8..d8bb5df1c9 100644 --- a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/AbstractRegistryMojo.java +++ b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/AbstractRegistryMojo.java @@ -5,6 +5,8 @@ import io.apicurio.registry.types.ContentTypes; import io.kiota.http.vertx.VertXRequestAdapter; import io.vertx.core.Vertx; +import io.vertx.core.VertxOptions; +import io.vertx.core.file.FileSystemOptions; import io.vertx.ext.web.client.WebClient; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; @@ -43,6 +45,15 @@ public abstract class AbstractRegistryMojo extends AbstractMojo { @Parameter(property = "password") String password; + protected Vertx createVertx() { + var options = new VertxOptions(); + var fsOpts = new FileSystemOptions(); + fsOpts.setFileCachingEnabled(false); + fsOpts.setClassPathResolvingEnabled(false); + options.setFileSystemOptions(fsOpts); + return Vertx.vertx(options); + } + protected RegistryClient createClient(Vertx vertx) { WebClient provider = null; if (authServerUrl != null && clientId != null && clientSecret != null) { diff --git a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/DownloadRegistryMojo.java b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/DownloadRegistryMojo.java index ac31a63f8a..e1b5748f70 100644 --- a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/DownloadRegistryMojo.java +++ b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/DownloadRegistryMojo.java @@ -76,7 +76,7 @@ protected void validate() throws MojoExecutionException { protected void executeInternal() throws MojoExecutionException, ExecutionException, InterruptedException { validate(); - Vertx vertx = Vertx.vertx(); + Vertx vertx = createVertx(); RegistryClient registryClient = createClient(vertx); try { diff --git a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/RegisterRegistryMojo.java b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/RegisterRegistryMojo.java index 84e4092272..26be0f744e 100644 --- a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/RegisterRegistryMojo.java +++ b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/RegisterRegistryMojo.java @@ -125,7 +125,7 @@ protected boolean validate() throws MojoExecutionException { protected void executeInternal() throws MojoExecutionException { int errorCount = 0; if (validate()) { - Vertx vertx = Vertx.vertx(); + Vertx vertx = createVertx(); RegistryClient registryClient = createClient(vertx); for (RegisterArtifact artifact : artifacts) { diff --git a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/TestUpdateRegistryMojo.java b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/TestUpdateRegistryMojo.java index f64187170c..986bc6db8f 100644 --- a/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/TestUpdateRegistryMojo.java +++ b/utils/maven-plugin/src/main/java/io/apicurio/registry/maven/TestUpdateRegistryMojo.java @@ -71,7 +71,7 @@ protected void validate() throws MojoExecutionException { @Override protected void executeInternal() throws MojoExecutionException { validate(); - Vertx vertx = Vertx.vertx(); + Vertx vertx = createVertx(); RegistryClient registryClient = createClient(vertx); try {