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

Adding solr server to existing springboot web app
Is it possible with Spring Boot to serve up JSPs with a stand alone JAR packaging
jenkins not able to find java test class in pom.xml
Jenkins deploy hook on push / merge, adapting pom.xml going cyclic
Maven enforcer append in children
sass:scss-lint and configuration?
Using Maven to start a socket listener before running integration tests
Copy modifications of jar from local machine to the target server via maven(or some other way)
maven import pom (BOM) own project from internal maven repository
Increase timeout for gradle to get a maven dependency
Using the Spotify Maven Docker plugin, how can I change the file permissions of a resource that I add to a Docker container?
Can a module compilation happen before it's dependency tests are over?
Cannot push to remote repo using the (spotify) Docker maven plugin
Cannot get DRL output during kie-maven-plugin decision table compilation
How to run spring web app (jdk 8) with embedded Tomcat 8
Retrieving dependencies from maven repository

Categories

HOME
sendgrid
multithreading
mediawiki
ngrx
path-finding
json.net
view
hashmap
relay
spagobi
amortized-analysis
twitter-bootstrap-4
survey
gps
ezpublish
amazon-cloudformation
kibana-4
u-sql
google-cloud-spanner
hapi
seaborn
graphlab
jsdoc
samoa
tokenize
kvc
sparse-matrix
ejabberd-module
msys2
kendo-datasource
preg-match
gammu
ssjs
hue
tasker
botbuilder
heightmap
flashair
cubic-spline
menuitem
scrollable
parentheses
alphabet
domain-model
integrity
dwscript
chord-diagram
probability-density
azure-virtual-network
multi-level
etsy
websitepanel
qcustomplot
hexdump
design-by-contract
eclipse-clp
myo
composite
jsapi
tween
dd
googlemock
php-5.4
article
valueconverter
undefined-reference
algebraic-data-types
fmod
prettify
ccss
soundtouch
pvrtc
dice
venn-diagram
propertyeditor
uiviewanimation-curve
punbb
boost-filesystem
hamachi
django-tagging
ecl
actionview
locate
dmx512
sef
uimenucontroller
xetex
gacutil
private-members
3gp
lzh

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile