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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected org.apache.maven.execution.MavenSessionprotected org.apache.maven.settings.SettingsCurrent user system settings for use in Maven.protected org.apache.maven.settings.crypto.SettingsDecrypterFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractGpgSignercreateSigner(String name) protected abstract voidprotected voidfinal voidexecute()getPassphrase(org.apache.maven.project.MavenProject project) Deprecated.protected AbstractGpgSignernewSigner(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:
-
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
-
session
@Inject protected org.apache.maven.execution.MavenSession session- Since:
- 3.0.0
-
settingsDecrypter
@Inject protected org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter- Since:
- 3.2.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.MojoExecutionExceptionorg.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.MojoExecutionExceptionorg.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
-
createSigner
protected AbstractGpgSigner createSigner(String name) throws org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoFailureException
-
getPassphrase
Deprecated.
-