Class JarsignerVerifyMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.jarsigner.AbstractJarsignerMojo
org.apache.maven.plugins.jarsigner.JarsignerVerifyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="verify", defaultPhase=VERIFY, threadSafe=true) public class JarsignerVerifyMojo extends AbstractJarsignerMojo
Checks the signatures of a project artifact and attachments using jarsigner.
Since:
1.0
Author:
Christian Schulte
  • Constructor Details

    • JarsignerVerifyMojo

      public JarsignerVerifyMojo()
  • Method Details

    • createRequest

      protected org.apache.maven.shared.jarsigner.JarSignerRequest createRequest(File archive)
      Creates the jar signer request to be executed.
      Specified by:
      createRequest in class AbstractJarsignerMojo
      Parameters:
      archive - the archive file to treat by jarsigner
      Returns:
      the request
    • preProcessArchive

      protected void preProcessArchive(File archive) throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractJarsignerMojo
      Pre-processes a given archive.
      Overrides:
      preProcessArchive in class AbstractJarsignerMojo
      Parameters:
      archive - The archive to process, must not be null.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if pre-processing failed
    • executeJarSigner

      protected void executeJarSigner(org.apache.maven.shared.jarsigner.JarSigner jarSigner, org.apache.maven.shared.jarsigner.JarSignerRequest request) throws org.apache.maven.shared.utils.cli.javatool.JavaToolException, org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractJarsignerMojo
      Executes jarsigner (execute signing or verification for a jar file).
      Specified by:
      executeJarSigner in class AbstractJarsignerMojo
      Parameters:
      jarSigner - the JarSigner execution interface
      request - the JarSignerRequest with parameters JarSigner should use
      Throws:
      org.apache.maven.shared.utils.cli.javatool.JavaToolException - if jarsigner could not be invoked
      org.apache.maven.plugin.MojoExecutionException - if the invocation of jarsigner succeeded, but returned a non-zero exit code