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 Assembly create outputDirectory
Custom build tagging with Jenkins, Artifactory, Maven
Unable to map request properly
maven surefire exclude by directory?
Enforce a minimum version of Maven
Maven with JBoss developer studio 9.x
Skip compilation in gmavenplus plugin
What is the use of Maven-Surefire plugin
Maven Plugins missing
Maven Build : was cached in the local repository
Maven packages smooks edifact models under wrong folder in fat jar on mvn assembly
Prevent war file from being copied to .m2/repository when running mvn clean install
JaCoCo not generating jacoco.exec until after skipping JaCoCo execution
How to exclude a single module from Javadoc generation in a Maven multi module project?
How to deploy a karaf feature from a local maven repository?
Incremental run of testsuite

Categories

HOME
compiler-construction
vim
variables
c#-4.0
relayjs
platform-builder
framework7
getelementsbytagname
jira
yahoo-oauth
spring-cloud-stream
twitter-bootstrap-4
jgroups
binary-tree
win32gui
autotools
cross-validation
awesome-wm
google-translate
reveal.js
row
n-gram
moonmail
remote-access
quartz-scheduler
django-simple-history
telephony
saxon
pugjs
nhibernate-envers
lucene.net
scichart
abi
tapestry
core-text
crystal-reports-2010
qhull
spark-jobserver
dynamic-featured-image
bootstrap-duallistbox
traffic
strncpy
wtx
webkitspeechrecognition
jspresso
atl
y86
mpmediaquery
sequential
splice
node-gyp
eigenvalue
vao
cubic-spline
jsch
fault
upstart
clean-architecture
aurelia-validation
colorama
typed-lambda-calculus
akka-cluster
epson
background-service
android-fonts
angular-cache
azure-sdk
trash
pcf
nsfilemanager
nsviewcontroller
prettytensor
ios4
historian
lib.web.mvc
simple-framework
purge
android-listview
deis
iiviewdeckcontroller
composite
dundas
unity5.2.3
notify
javax.mail
dd
android-nested-fragment
phalanger
nsbutton
java-metro-framework
google-reader
android-radiobutton
elliptic-curve
fluentautomation
mechanize-ruby
picturefill
message-driven-bean
imdbpy
flexmojos
uv-mapping
batterylevel
buster.js
random-seed
html-editor
simba
libstdc++
bluepill
genshi
horizontal-accordion
yui-datatable
xfbml
visitor-statistic
wise
thunderbird-lightning
compiler-specific
memory-size
data-driven
eqatec
boost-smart-ptr
project-hosting
gacutil
putchar

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