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
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.shared.jarsigner.JarSignerRequest
createRequest
(File archive) Creates the jar signer request to be executed.protected void
executeJarSigner
(org.apache.maven.shared.jarsigner.JarSigner jarSigner, org.apache.maven.shared.jarsigner.JarSignerRequest request) Executes jarsigner (execute signing or verification for a jar file).protected void
preProcessArchive
(File archive) Pre-processes a given archive.Methods inherited from class org.apache.maven.plugins.jarsigner.AbstractJarsignerMojo
decrypt, execute, getCommandlineInfo, getStorepass, getStoretype, processArchive, processArchives, validateParameters
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
JarsignerVerifyMojo
public JarsignerVerifyMojo()
-
-
Method Details
-
createRequest
Creates the jar signer request to be executed.- Specified by:
createRequest
in classAbstractJarsignerMojo
- 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 classAbstractJarsignerMojo
- Parameters:
archive
- The archive to process, must not benull
.- Throws:
org.apache.maven.plugin.MojoExecutionException
- if pre-processing failed
-