maven
Changing digest algorithm for maven-jarsigner-plugin
How can I change the default (in my case SHA256) digest algorithm within the configuration of maven-jarsigner-plugin? I would like it to be SHA1. I tried adding <digestalg>SHA1</digestalg> to the configuration block in the pom but that didn't do it because MANIFEST.MF still came out reporting SHA256. In a command line, you would just do: jarsigner ... -digestalg SHA1 myjar.jar myalias
As per this post, using arguments worked for me: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jarsigner-plugin</artifactId> <version>1.4</version> <executions> <execution> <phase>package</phase> <id>sign</id> <goals> <goal>sign</goal> </goals> </execution> </executions> <configuration> <keystore>mykey.jks</keystore> <alias>myalias</alias> <storepass>somepass</storepass> <arguments> <argument>-digestalg</argument><argument>SHA1</argument> </arguments> </configuration> </plugin>
Related Links
How to cache specific maven artifact into local repository?
Mule Maven - error running project with Maven
Dropping a release from (public) Maven Central
Jenkins, Nexus, bypass SVN password cached on box
SonarQube Scanner + Jenkins + Maven = java.lang.ClassFormatError
Invoke a Java program during maven build to generate some files
Maven: Building a sar and adding files
SonarQube Maven plugin: Jazz annotate Timeout exceeded
Checkout and build project using Jenkins
browserstack jenkins pluing error
deploying a Maven based App to heroku with tests
Maven process tests in it/ as well as test/
Jenkins Artifactory plugin not detecting my compiler during maven build
Maven : only deploy root project
How to run tomcat7-maven-plugin in debug mode with IntelliJ IDEA
Non ascii in Sonar profile name