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)
public class JarsignerVerifyMojo
extends AbstractJarsignerMojo
Checks the signatures of a project artifact and attachments using jarsigner.
- Since:
- 1.0
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanSee options.private booleanWhentruethis will make the execute() operation fail, throwing an exception, when verifying a non signed jar.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.shared.jarsigner.JarSignerRequestcreateRequest(File archive) Creates the jar signer request to be executed.protected voidpreProcessArchive(File archive) Pre-processes a given archive.Methods inherited from class AbstractJarsignerMojo
decrypt, execute, getCommandlineInfo, getMessage, getStorepass, getStoretypeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
certs
@Parameter(property="jarsigner.certs", defaultValue="false") private boolean certsSee options. -
errorWhenNotSigned
@Parameter(property="jarsigner.errorWhenNotSigned", defaultValue="false") private boolean errorWhenNotSignedWhentruethis will make the execute() operation fail, throwing an exception, when verifying a non signed jar. Primarily to keep backwards compatibility with existing code, and allow reusing the bean in unattended operations when set tofalse.- Since:
- 1.3
-
-
Constructor Details
-
JarsignerVerifyMojo
public JarsignerVerifyMojo()
-
-
Method Details
-
createRequest
Creates the jar signer request to be executed.- Specified by:
createRequestin 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:AbstractJarsignerMojoPre-processes a given archive.- Overrides:
preProcessArchivein classAbstractJarsignerMojo- Parameters:
archive- The archive to process, must not benull.- Throws:
org.apache.maven.plugin.MojoExecutionException- If pre-processing failed.
-