Checks the signature of a signed jar using jarsigner.
Mojo Attributes:
runtimepackage| Name | Type | Description |
|---|---|---|
| finalName | String |
Name of the generated JAR (without classifier and extension). |
| workingDirectory | File |
The working directory in which the jarsigner executable will be run. Default value is ${basedir}. |
| Name | Type | Description |
|---|---|---|
| checkCerts | boolean |
Check certificates. Requires {@link #setVerbose(boolean)}.
See options. Default value is false. |
| errorWhenNotSigned | boolean |
When 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. Default value is true. |
| jarPath | File |
Path of the signed jar. When specified, the finalName is ignored. |
| verbose | boolean |
Enable verbose
See options. Default value is false. |
booleanNo${checkcerts}falsetrue 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.
booleanNo${errorWhenNotSigned}truejava.lang.StringYes${project.build.finalName}java.io.FileNo${jarpath}booleanNo${verbose}falsejava.io.FileYes${workingdir}${basedir}