Package io.apicurio.registry.maven
Class RegisterRegistryMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.apicurio.registry.maven.AbstractRegistryMojo
io.apicurio.registry.maven.RegisterRegistryMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
Register artifacts against registry.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static RegisterArtifact
buildFromRoot
(RegisterArtifact rootArtifact, String artifactId) protected void
protected static io.apicurio.registry.content.ContentHandle
readContent
(File file) void
setArtifacts
(List<RegisterArtifact> artifacts) void
setSkip
(boolean skip) protected boolean
validate()
Validate the configuration.Methods inherited from class io.apicurio.registry.maven.AbstractRegistryMojo
createClient, createVertx, execute, getContentTypeByExtension, logAndThrow, logAndThrow, logAndThrow, setAuthServerUrl, setClientId, setClientScope, setClientSecret, setPassword, setRegistryUrl, setUsername
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RegisterRegistryMojo
public RegisterRegistryMojo()
-
-
Method Details
-
validate
protected boolean validate() throws org.apache.maven.plugin.MojoExecutionExceptionValidate the configuration.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
executeInternal
protected void executeInternal() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executeInternal
in classAbstractRegistryMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setArtifacts
-
setSkip
public void setSkip(boolean skip) -
readContent
-
buildFromRoot
-