@Mojo(name="verify", defaultPhase=VERIFY) public class JarsignerVerifyMojo extends AbstractJarsignerMojo
Modifier and Type | Field and Description |
---|---|
private boolean |
certs
See options.
|
private boolean |
errorWhenNotSigned
When
true this will make the execute() operation fail,
throwing an exception, when verifying a non signed jar. |
Constructor and Description |
---|
JarsignerVerifyMojo() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.maven.shared.jarsigner.JarSignerRequest |
createRequest(java.io.File archive)
Creates the jar signer request to be executed.
|
protected void |
preProcessArchive(java.io.File archive)
Pre-processes a given archive.
|
decrypt, execute, getCommandlineInfo, getMessage, getStorepass, getStoretype
@Parameter(property="jarsigner.certs", defaultValue="false") private boolean certs
@Parameter(property="jarsigner.errorWhenNotSigned", defaultValue="false") private boolean errorWhenNotSigned
true
this 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 to false
.protected org.apache.maven.shared.jarsigner.JarSignerRequest createRequest(java.io.File archive)
createRequest
in class AbstractJarsignerMojo
archive
- the archive file to treat by jarsignerprotected void preProcessArchive(java.io.File archive) throws org.apache.maven.plugin.MojoExecutionException
AbstractJarsignerMojo
preProcessArchive
in class AbstractJarsignerMojo
archive
- The archive to process, must not be null
.org.apache.maven.plugin.MojoExecutionException
- If pre-processing failed.