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

Jenkins pipeline, bitbucket hook and maven release plugin infinite loop
Managing several maven artifacts in a delivery pipeline
-Dmaven.multiModuleProjectDirectory system property is not set in JDeveloper 12.1.3 and external maven
How to handle Test Suite with Cobertura?
How to manually add dependences formated for a pom
How to skip a maven build step without modifying the pom itself?
Excluding spark from uber jar with maven
Gradle in Jenkins cannot deploy to Nexus: internal ssl error
Overwhelming search results in pom.xml dependencies search
JMeter Java HEAP issue seen after finished test plan execution
Target/Classes accidentally removed from Java Maven Project in IntelliJ
Maven to initate ant task and then using it as dependency
Choose maven profile from OS family
Test Case failures with a java.lang.ArrayIndexOutOfBoundsException: 28526 with JDK 8 and terracotta 3.4.0
Running Ant task on maven: copy, delete files within the projects
How to form the .bnd files while using maven-bundle-plugin?

Categories

HOME
mediawiki
plot
amortized-analysis
frameworks
ckeditor
angular-ui-bootstrap
enterprise-library-5
opengl-es-2.0
portia
contact
reveal.js
imacros
rascal
google-cloud-ml
iron-router
ef-migrations
connection-string
interop
autoconf
abi
cloudhub
wkwebview
realex-payments-api
kudan
devops
php-openssl
crystal-reports-2010
spark-jobserver
bootstrap-material-design
web-api-testing
fluentvalidation
google-cloud-nl
airconsole
google-api-nodejs-client
normal-distribution
disassembling
espeak
leading-zero
ws-security
sfdc
ncalc
grid.mvc
unixodbc
import-from-excel
modelmapper
flickr-api
filepicker
dotnetzip
dwscript
minimization
medium.com
url-masking
mathematica-frontend
etsy
firebaseui
sigabrt
python-stackless
suffix-tree
two-factor-authentication
tcpserver
wordml
cakephp-3.1
microbenchmark
ideamart
dundas
angular-local-storage
websocket4net
document-classification
tld
jubula
industrial
commoncrypto
gridfs
runtime.exec
ruby-datamapper
gridcontrol
sabredav
eventlistener
distutils
anonymous-methods
reddot
ohm
cufon
subscript
eclipse-templates
zpt
servicehost
self-extracting
mongomapper
radcombobox
sudzc
gamequery
getresponsestream
xsdobjectgen
backcolor
mtj
temporal-database
putchar
private-members
post-build
3gp

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