@Mojo(name="sign", defaultPhase=PACKAGE) public class JarsignerSignMojo extends AbstractJarsignerMojo
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
keypass
See options.
|
private boolean |
removeExistingSignatures
Indicates whether existing signatures should be removed from the processed JAR files prior to signing them.
|
private java.lang.String |
sigfile
See options.
|
private java.lang.String |
tsa
See options.
|
private java.lang.String |
tsacert
See options.
|
Constructor and Description |
---|
JarsignerSignMojo() |
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 java.lang.String |
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of a
Commandline . |
protected void |
preProcessArchive(java.io.File archive)
Pre-processes a given archive.
|
decrypt, execute, getMessage, getStorepass, getStoretype
@Parameter(property="jarsigner.keypass") private java.lang.String keypass
@Parameter(property="jarsigner.sigfile") private java.lang.String sigfile
@Parameter(property="jarsigner.removeExistingSignatures", defaultValue="false") private boolean removeExistingSignatures
@Parameter(property="jarsigner.tsa") private java.lang.String tsa
@Parameter(property="jarsigner.tsacert") private java.lang.String tsacert
protected java.lang.String getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
AbstractJarsignerMojo
Commandline
.
This method creates the string representation by calling commandLine.toString()
by default.
getCommandlineInfo
in class AbstractJarsignerMojo
commandLine
- The Commandline
to get a string representation of.commandLine
.protected 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.protected org.apache.maven.shared.jarsigner.JarSignerRequest createRequest(java.io.File archive) throws org.apache.maven.plugin.MojoExecutionException
createRequest
in class AbstractJarsignerMojo
archive
- the archive file to treat by jarsignerorg.apache.maven.plugin.MojoExecutionException