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

Maven surefire java 8 with EasyMock yields: java.lang.NoClassDefFoundError: Could not initialize class com.sun.proxy.$Proxy33
No schemas have been found | XJC
Primfaces Paginator of data table is not working while clicking paglinks
Maven SCM plugin, how set failOnError = false
Tomcat Maven Plugin multiple contexts
no dependency infomation available when building a project throung maven
frontend-maven-plugin failed to pick up Maven proxy setting
What is the default groupId for a maven artifact described as “:artifactId:version”?
I'm having problems using #BeanParam annotation
How to set parameter variable for TestNg suite file from Maven POM
Maven uses wrong repository
How to add aem Uber jar dependency in maven build
Glassfish: admin-cli.jar: JDK s javaeetutorial simplemessage-ear won't deploy
Can't use Tomahawk in MyFaces 2.2
how to configure CAS with LDAP
Is there a way to edit parent relativePath with mvn

Categories

HOME
ionic-framework
jdo
bluetooth
gitlab
gerrit
openmp
raspberry-pi
relay
react-redux
graphql
umd
webpack-2
in-app-purchase
contact
gnupg
ssl-client-authentication
u-sql
quickbooks
iolanguage
angular-ui
nodatime
dbext
java-3d
functional-testing
pepper
fgetcsv
greendao
elasticsearch-ruby
jaxb2
objectanimator
unboundid
gsoap
r-raster
media-queries
mozilla
mpmediaquery
bower-install
dartium
retina-display
mixture-model
squib
sql-server-agent
dynamic-reports
isbn
midl
http-redirect
long-polling
chain-builder
multipeer-connectivity
python-c-api
paxos
pebble-watch
setter
nodebb
knpmenubundle
sonarlint-vs
minimization
pintos
color-picker
android-textview
intrusion-detection
autorest
gridview-sorting
jwplayer7
freelancer.com-api
uid
javax.sound.midi
quicklisp
coveralls
emailrelay
graph-drawing
mmc
pretty-print
geonetwork
website-monitoring
codeigniter-url
knuth
network-interface
phalanger
php-5.4
starcluster
picturefill
meteor-velocity
app42
cloud-connect
prettify
mysqltuner
batterylevel
html4
runas
javaspaces
ticoredatasync
semantic-diff
boost-filesystem
window-management
stage
qt-jambi
tomcat-valve
android-sdk-2.1
sudzc
coda-slider
dentrix
getresponsestream
user-friendly
audio-capture
iweb
multiple-languages
lzh

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