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

WSO2 Carbon Core 4.2.0 Patch 10 build failed
Maven implicit profile Activation
How to deploy public-project Maven artifacts to a different remote repository?
Unit Testing GMavenPlus Groovy Mojos - project.basedir not being expanded
SVN Checkout error in Jenkns
Using appassembler as a daemon script to run apache-camel route fails during reboot
JasperReports Maven broken?
Run testng methods across different tests in parallel
Moqui Component with Gradle Maven Repo Dependencies
Sphinx4 breaks on AWS Elastic Beanstalk, works on dev machine
Maven multi-project depths
Setup AEM Adobe CQ5 6.1 project to build/install offline
Adding zip file to Maven dependencies
Running main method from test class via maven
Elastic Search error
Maven appassembler program properties

Categories

HOME
hook
keycloak
reserved
spagobi
bookshelf.js
paw-app
microservices
electronics
v8
disassembler
slurm
gnupg
floating-action-button
n-gram
remote-access
flask-wtforms
quartz-scheduler
dosgi
karma-jasmine
kryo
xlsxwriter
cx-freeze
clickonce
arabic
semantic-analysis
chromebook
xacml
gsmcomm
gsoap
google-rich-snippets
hybridauth
cloud-code
catalog
stacked
git-merge
squib
sas-visual-analytics
ensembles
turbogears
vao
avconv
apache-fop
pubmed
dds
jlink
mu
np-complete
linode
imanage
hittest
dynamics-sl
django-scheduler
sonarlint-vs
time-and-attendance
libpng
pcf
firebaseui
react-native-listview
goose
wapiti
vhd
cyclomatic-complexity
kcachegrind
browser-bugs
web-controls
javax.mail
operator-precedence
ceil
typeof
balanced-payments
c18
batterylevel
gwt-rpc
rabl
robotics-studio
gdata-api
cascalog
objective-c-2.0
regsvr32
windows-phone-7.1.1
spring-portlet-mvc
punbb
assembly-loading
bigcouch
pydot
subgurim-maps
w3wp.exe
fluent-interface
web-architecture
data-driven
uimenucontroller
project-hosting
nerddinner
ubuntu-9.04
grid-system
misv

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