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

Arquillian ShrinkWrap
How can the archive created by maven-shade-plugin be indexed?
maven compiles tag files
Use maven meta-project to push war to tomcat
Maven clean fails
Writing a maven custom report plugin; how do I generate the html body or “middle” of my report?
java.lang.NoClassDefFoundError Erro with a maven dependency on EJB project in Jboss 7
How to generate JBoss jboss-deployment-structure from maven dependencies
How do I patch an eclipse plug-in using a fragment plugin and deploy it in my eclipse product?
I want my Nexus repo to mirror snapshot of another Nexus repo for 24 hour
Composite/template stoped working inside a jar in Maven Project
Name and description of projects are null in generated pom: how to fix it?
JaCoCo Functional Test Coverage on SONAR
Maven javadoc plugin: is it possible to show private selectively for certain packages
Replicating Ant 'targets' in Maven
Rollback on Continuous Deployment with Hudson and Maven

Categories

HOME
deployment
oracle11g
path-finding
office365api
electron
bpmn
gps
angular-ui-bootstrap
ezpublish
opengl-es-2.0
fancybox
python-unittest
gz
leiningen
http-status-code-504
nodatime
predix
custom-wordpress-pages
visjs
cx-freeze
sylius
kvc
extjs5
telerik-reporting
mmap
minitab
google-cloud-nl
bcd
preg-match-all
usbserial
hybridauth
phpfreechat
wallpaper
hexo
fusionpbx
vxworks
disassembling
multilingual
android-browser
starteam
twitch
elasticsearch-plugin
graphenedb
gzipstream
ncalc
keydown
osx-mavericks
mplayer
nativeapplication
windows-iot-core-10
capacity
mediaelement
setuptools
bonobo
multi-level
trash
angstrom-linux
two-factor-authentication
ora-00900
cyclomatic-complexity
jmeter-maven-plugin
feedback
tmuxinator
spidermonkey
cisco-ios
bigbluebutton
website-monitoring
xc16
cdt
java-metro-framework
eol
openlaszlo
mysqltuner
gridfs
spring-io
soundtouch
comaddin
ember-app-kit
html-editor
dmoz
trusted
gil
enter
netdna-api
coredump
propagation
iweb
nerddinner
putchar
spec#
genealogy
ntvdm.exe

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile