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 get rid of maven plugin configuration error in IntelliJ Idea
How to resolve error Unknown synapse configuration tag in wso2 developer studio
Is Maven ready for JDK9?
Maven Web Project + Tomcat + jRebel
How to use include tag in Maven dependency plugin
jxbrowser-cross-platform dependency fails to install
Maven dependencies
Adding <path> tag to pom.xml file
How do I add a directory in /target to the resulting JAR with Spring Boot?
Maven dependency issue in Mule project
Maven POM xml error in JDBS
How to determine the effect of changing a core project's scope to runtime?
Jenkins not finding SureFire Reports
maven dependency mediation when 2 versions of same dependency at same depth
Is there a Maven dependency for jmeter
Maven: plugin to download a single file from shared folder

Categories

HOME
yii2
arduino-uno
ionic-framework
cloud
webpack
ngrx
webstorm
mean-stack
xmpp
at-command
yahoo-oauth
razor
graphql
windows-server
ios-charts
elasticsearch-hadoop
adobe-analytics
reveal.js
correlation
remote-access
django-admin
connection-string
shared-hosting
excel-2007
core-text
neo4j-spatial
elasticsearch-net
log4js-node
dbclient
bpel
phonegap
exuberant-ctags
jspresso
gtrendsr
cloud-code
revolution-slider
simplexml
libraries
awt
unoconv
ensembles
hp-ux
galen
total-commander
.net-4.6.2
businessworks
sas-jmp
parentheses
react-scripts
prolog-setof
rails-routing
hendrix
colorama
memory-alignment
cubes
firmata
url-pattern
measures
react-native-listview
superstack
ptrace
netmq
natvis
javax.mail
geonetwork
nstableviewcell
camanjs
cdt
preferences
internet-connection
dml
seaside
oracle-warehouse-builder
java.nio.file
intentservice
flexmojos
bulkloader
buster.js
pushbackinputstream
hamiltonian-cycle
isnullorempty
manchester-syntax
objective-c-2.0
chrono
qtkit
windows-phone-7.1.1
nsmanagedobject
dotnethighcharts
semantic-diff
netdna-api
hirefire
genshi
locationlistener
celltable
oncheckedchanged
visitor-statistic
routedevent
preference
javap
uiq3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App