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 SummaryFieldsModifier 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.MojoROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.AbstractMojogetLog, 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- 
AbstractGpgMojopublic AbstractGpgMojo()
 
- 
- 
Method Details- 
executepublic 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
 
- 
enforceBestPracticesprotected void enforceBestPractices() throws org.apache.maven.plugin.MojoFailureException- Throws:
- org.apache.maven.plugin.MojoFailureException
 
- 
doExecuteprotected 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
 
- 
newSignerprotected AbstractGpgSigner newSigner(org.apache.maven.project.MavenProject mavenProject) throws org.apache.maven.plugin.MojoFailureException - Throws:
- org.apache.maven.plugin.MojoFailureException
 
- 
createSignerprotected AbstractGpgSigner createSigner(String name) throws org.apache.maven.plugin.MojoFailureException - Throws:
- org.apache.maven.plugin.MojoFailureException
 
- 
getPassphraseDeprecated.
 
-