Package org.apache.maven.plugins.gpg
Class AbstractGpgMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.gpg.AbstractGpgMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GpgSignAttachedMojo
,SignAndDeployFileMojo
,SignDeployedMojo
public abstract class AbstractGpgMojo
extends org.apache.maven.plugin.AbstractMojo
- Author:
- Benjamin Bentmann
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
protected org.apache.maven.execution.MavenSession
protected org.apache.maven.settings.Settings
Current user system settings for use in Maven.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
protected void
final void
execute()
getPassphrase
(org.apache.maven.project.MavenProject project) Deprecated.protected AbstractGpgSigner
newSigner
(org.apache.maven.project.MavenProject mavenProject) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DEFAULT_ENV_MAVEN_GPG_KEY
- See Also:
-
DEFAULT_ENV_MAVEN_GPG_FINGERPRINT
- See Also:
-
DEFAULT_ENV_MAVEN_GPG_PASSPHRASE
- See Also:
-
session
@Component protected org.apache.maven.execution.MavenSession session- Since:
- 3.0.0
-
settings
@Parameter(defaultValue="${settings}", readonly=true, required=true) protected org.apache.maven.settings.Settings settingsCurrent user system settings for use in Maven.- Since:
- 1.6
-
-
Constructor Details
-
AbstractGpgMojo
public AbstractGpgMojo()
-
-
Method Details
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
enforceBestPractices
protected void enforceBestPractices() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
doExecute
protected abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
newSigner
protected AbstractGpgSigner newSigner(org.apache.maven.project.MavenProject mavenProject) throws org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoFailureException
-
getPassphrase
Deprecated.
-