Package io.apicurio.registry.maven
Class AbstractRegistryMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.apicurio.registry.maven.AbstractRegistryMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
DownloadRegistryMojo,RegisterRegistryMojo,TestUpdateRegistryMojo
public abstract class AbstractRegistryMojo
extends org.apache.maven.plugin.AbstractMojo
Base class for all Registry Mojo's. It handles RegistryService's (aka client) lifecycle.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.apicurio.registry.rest.client.RegistryClientcreateClient(io.vertx.core.Vertx vertx) protected io.vertx.core.Vertxvoidexecute()protected abstract voidprotected StringgetContentTypeByExtension(String fileName) protected voidlogAndThrow(com.microsoft.kiota.ApiException e) protected voidlogAndThrow(io.apicurio.registry.rest.client.models.ProblemDetails e) protected voidlogAndThrow(io.apicurio.registry.rest.client.models.RuleViolationProblemDetails e) voidsetAuthServerUrl(String authServerUrl) voidsetClientId(String clientId) voidsetClientScope(String clientScope) voidsetClientSecret(String clientSecret) voidsetKeyStorePassword(String keyStorePassword) voidsetKeyStorePath(String keyStorePath) voidsetKeyStorePemKeyPath(String keyStorePemKeyPath) voidsetKeyStoreType(String keyStoreType) voidsetPassword(String password) voidsetRegistryUrl(String registryUrl) voidsetTrustAll(boolean trustAll) voidsetTrustStorePassword(String trustStorePassword) voidsetTrustStorePath(String trustStorePath) voidsetTrustStoreType(String trustStoreType) voidsetUsername(String username) voidsetVerifyHostname(boolean verifyHostname) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractRegistryMojo
public AbstractRegistryMojo()
-
-
Method Details
-
createVertx
protected io.vertx.core.Vertx createVertx() -
createClient
protected io.apicurio.registry.rest.client.RegistryClient createClient(io.vertx.core.Vertx vertx) -
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
executeInternal
protected abstract void executeInternal() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, ExecutionException, InterruptedException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionExecutionExceptionInterruptedException
-
getContentTypeByExtension
-
setRegistryUrl
-
setAuthServerUrl
-
setClientId
-
setClientSecret
-
setClientScope
-
setUsername
-
setPassword
-
setTrustStorePath
-
setTrustStorePassword
-
setTrustStoreType
-
setKeyStorePath
-
setKeyStorePassword
-
setKeyStoreType
-
setKeyStorePemKeyPath
-
setTrustAll
public void setTrustAll(boolean trustAll) -
setVerifyHostname
public void setVerifyHostname(boolean verifyHostname) -
logAndThrow
protected void logAndThrow(com.microsoft.kiota.ApiException e) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
logAndThrow
protected void logAndThrow(io.apicurio.registry.rest.client.models.ProblemDetails e) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
logAndThrow
protected void logAndThrow(io.apicurio.registry.rest.client.models.RuleViolationProblemDetails e) throws org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoFailureException
-