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 Details

    • DEFAULT_ENV_MAVEN_GPG_KEY

      public static final String DEFAULT_ENV_MAVEN_GPG_KEY
      See Also:
    • DEFAULT_ENV_MAVEN_GPG_FINGERPRINT

      public static final String DEFAULT_ENV_MAVEN_GPG_FINGERPRINT
      See Also:
    • DEFAULT_ENV_MAVEN_GPG_PASSPHRASE

      public static final String DEFAULT_ENV_MAVEN_GPG_PASSPHRASE
      See Also:
    • settings

      @Parameter(defaultValue="${settings}", readonly=true, required=true) protected org.apache.maven.settings.Settings settings
      Current 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.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
    • createSigner

      protected AbstractGpgSigner createSigner(String name) throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • getPassphrase

      @Deprecated public String getPassphrase(org.apache.maven.project.MavenProject project)
      Deprecated.