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

Is it possible to have integration tests module built after main project
Unable to find the mojo 'generate-sources'
Start Jetty with external war from inside (JUnitRunner) integration tests
Maven build Failure on annotation
How to teach maven CAS Authentification
Jenkins Sonar plugin throws duplicate source file error during analysis
How to determine what artifacts are built from a maven reactor plan (ie: including sub modules)?
What is the appropriate way to build WSO2 Carbon tags?
How to create empty directory as part of distribution.xml?
Maven test dependency not being found
Defining dependencies for MapReduce projects and Oozie workflows
Need to replace code snippet while maven build
Building a WAR with unzipped JAR dependencies?
How to add dependency Hbase to nutch project?
How to write something in sure fire reports without using Assert?
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate

Categories

HOME
maven
log4j
ionic-framework
google-chrome-extension
openlayers
isabelle
fluentd
mean-stack
at-command
leon
c#-2.0
survey
retrofit
angular-ui-bootstrap
ojdbc
mvvmcross
ezpublish
acquia
wamp
bs4
upload
slurm
spring-tool-suite
ibm-odm
msp430
facebook-page
footer
http-status-code-504
text-rendering
code-review
samoa
realex-payments-api
p-value
wpfdatagrid
xacml
delicious-api
iframe-resizer
semantic-versioning
karaf
copying
kendo-ui-grid
vsts-build-task
environment-modules
unspecified
ws-security
eclipse-scout
http-live-streaming
midl
sas-jmp
long-polling
jsch
multipeer-connectivity
return-value
veracode
svmlight
aurelia-validation
boost-preprocessor
pearson
pdfclown
dwscript
query-performance
sts-springsourcetoolsuite
login-control
bluemix-app-scan
ios4
asp.net5
freelancer.com-api
ford-fulkerson
fouc
drawbitmap
interrupted-exception
processmodel
generic-programming
clipperlib
skos
dia
xc16
network-interface
client-side-templating
html-helper
uitouch
valueconverter
reactfx
htmlcleaner
centos5
html5-notifications
ccss
tidy
soundtouch
ruby-datamapper
dotnetnuke-5
jquery-mobile-dialog
html-editor
flashvars
simba
isnullorempty
cisco-jtapi
javaspaces
twrequest
transactionscope
doh
xmlspy
tomcat-valve
imac
fluent-interface
icanhaz.js
dbal
thunderbird-lightning
ti-dsp
pascal-fc
windows-live-messenger

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