log("signing: " + this.signing);
for (final File a : artifacts) {
final JarSignerRequest request = this.signing.signRequest(this.outputDirectory, a);
try {
final JarSignerResult result = this.jarSigner.execute(request);
final CommandLineException signException = result.getExecutionException();
final int signExitCode = result.getExitCode();
if (signException != null) {
failSignature(signException);
}
if (signExitCode > 0) {
throw new MojoExecutionException("signing returned with exit code: " + signExitCode);