Package org.jreleaser.maven.plugin
Class JReleaserSignMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jreleaser.maven.plugin.JReleaserSignMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="sign")
public class JReleaserSignMojo
extends org.apache.maven.plugin.AbstractMojo
Sign release artifacts.
- Since:
- 0.1.0
- Author:
- Andres Almiray
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Fileprotected BooleanSkips remote operations.protected BooleanSearches for the Git root.protected org.jreleaser.model.internal.JReleaserModelprotected Fileprotected org.apache.maven.project.MavenProjectThe project whose model will be checked.protected BooleanEnable strict mode.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectEntries(String[] input) collectEntries(String[] input, boolean lowerCase) protected org.jreleaser.model.internal.JReleaserModelprotected org.jreleaser.model.internal.JReleaserContextprotected PrintWriterprotected voidprotected voiddoExecute(org.jreleaser.model.internal.JReleaserContext context) voidexecute()protected org.jreleaser.logging.JReleaserLoggerprotected org.jreleaser.model.api.JReleaserContext.ModegetMode()protected booleanisQuiet()protected booleanisSkip()protected org.jreleaser.model.internal.JReleaserModelreadModel(org.jreleaser.logging.JReleaserLogger logger) protected booleanresolveBoolean(String key, Boolean value) resolveCollection(String key, List<String> values) protected org.jreleaser.model.internal.JReleaserContext.ConfigurerresolveConfigurer(File configFile) protected org.jreleaser.model.internal.JReleaserContextMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe project whose model will be checked. -
jreleaser
@Parameter protected org.jreleaser.model.internal.JReleaserModel jreleaser -
outputDirectory
@Parameter(property="jreleaser.output.directory", defaultValue="${project.build.directory}/jreleaser") protected File outputDirectory -
configFile
-
dryrun
Skips remote operations. -
gitRootSearch
Searches for the Git root. -
strict
Enable strict mode.
-
-
Constructor Details
-
JReleaserSignMojo
public JReleaserSignMojo()
-
-
Method Details
-
doExecute
protected void doExecute(org.jreleaser.model.internal.JReleaserContext context) -
isSkip
protected boolean isSkip() -
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
setupContext
protected org.jreleaser.model.internal.JReleaserContext setupContext() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
collectSelectedPlatforms
-
collectRejectedPlatforms
-
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
-
isQuiet
protected boolean isQuiet() -
getLogger
protected org.jreleaser.logging.JReleaserLogger getLogger() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createTracer
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
convertModel
protected org.jreleaser.model.internal.JReleaserModel convertModel() -
readModel
protected org.jreleaser.model.internal.JReleaserModel readModel(org.jreleaser.logging.JReleaserLogger logger) -
createContext
protected org.jreleaser.model.internal.JReleaserContext createContext() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
resolveBoolean
-
resolveCollection
-
resolveConfigurer
protected org.jreleaser.model.internal.JReleaserContext.Configurer resolveConfigurer(File configFile) -
getMode
protected org.jreleaser.model.api.JReleaserContext.Mode getMode() -
collectEntries
-
collectEntries
-