github / maven-plugins

Official GitHub Maven Plugins
MIT License
587 stars 197 forks source link

maven-jarsigner-plugin : Using this, want to fail the maven build if the Codesign certificate is expired #157

Open pjonnlagadda opened 1 year ago

pjonnlagadda commented 1 year ago

Using with the CodeSign in my pom.xml we are signing the jar which is working perfectly.

Now i want to fail the job

  1. in case the jar is unsigned?
  2. in case of the installed code sign certificate is expired?

i think if we add the true into the section, works for unsigned jars??

I want to know exactly about "fail the build in case of the installed code sign certificate is expired?" Can any one help me on this?

Below is the profile used for the code sign configuration in the pom.xml

CodeSign false http://timestamp.comodoca.com/rfc3161 TestCodeSigningCertificate Windows-My org.apache.maven.plugins maven-jarsigner-plugin 1.4 sign integration-test sign ${codesign.storetype} ${codesign.alias} false ${codesign.tsa}