'I can't sign the Java application when deploying through pom.xml file and p12 digital certificate file
I got a Java application (Swing) with maven developed by netbeans. The idea is signing the jar file as output when deploying. One part of the pom.xml file contains.
<configuration>
<archiveDirectory>${project.basedir}/src/main/webapp/java</archiveDirectory>
<keystore>E:\cert\certsigning.p12</keystore>
<storetype>PKCS12</storetype>
<alias>aliasnameexample</alias>
</configuration>
After that, I applied Clean and Build to the project and I got the following error when compiling:
Failed to execute goal org.apache.maven.plugins:maven-jarsigner-plugin:1.4:sign (sign) on project ExampleSite: Failed executing 'cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_181\jre\..\bin\jarsigner.exe" -keystore E:\cert\certsigning.p12 -storetype PKCS12 E:\Data\ExampleSite\src\main\webapp\java\Example-1.0.jar aliasnameexample"' - exitcode 1 -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
What is it missing?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
