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.
  • 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.MojoExecutionException
      org.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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
      ExecutionException
      InterruptedException
    • getContentTypeByExtension

      protected String getContentTypeByExtension(String fileName)
    • setRegistryUrl

      public void setRegistryUrl(String registryUrl)
    • setAuthServerUrl

      public void setAuthServerUrl(String authServerUrl)
    • setClientId

      public void setClientId(String clientId)
    • setClientSecret

      public void setClientSecret(String clientSecret)
    • setClientScope

      public void setClientScope(String clientScope)
    • setUsername

      public void setUsername(String username)
    • setPassword

      public void setPassword(String password)
    • 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.MojoExecutionException
      org.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