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 picking up environment variable set by jenkins
Set Maven dependency versions in properties file
Cannot initialize module TreeWalker - Unable to instantiate SuppressWarningsHolder
Merge Maven Sonar reports
maven-dependency-plugin unpack-dependencies can't support tar containing paths over 100 characters
Jenkins maven release credentials
How to remove unnecessary files from ExtJs 4.1 in Maven project?
How to use Gradle's dynamic versions and avoid betas?
ivy resolve dependencies from different settings
Prevent test errors in 'mvn site' goal with ROME dependency and cobertura-maven-plugin
maven is src/main/resources always picked up?
Dependencies are resolved only on my mac machine and not on the windows one for the same project.How to fix that?
Failsafe integration tests running on jetty-maven-plugin hanging or/and OutOfMemoryError
Running testng.xml of TestNG framework in maven pom.xml
Jenkins- SVN poll won't work if take checkout using shell script
Multiple warnings when building wso2 esb

Categories

HOME
testng
c#-4.0
fluentd
heroku
iterator
raspberry-pi
fme
react-router
kalman-filter
jgroups
c#-2.0
ebean
flyway4
dax
export-to-csv
collectd
quickfix
quartz-scheduler
netflix
physics-engine
poltergeist
info.plist
elasticsearch-ruby
google-cloud-endpoints-v2
google-sites-2016
pim
framemaker
overlap
dosbox
restlet
retina-display
x11-forwarding
lto
document.write
g-code
http-live-streaming
import-from-excel
flashair
skeleton-css-boilerplate
fault
osx-mavericks
python-c-api
mplayer
nativeapplication
r-forge
windows-iot-core-10
linode
chord-diagram
quartz-composer
topbeat
url-pattern
android-fonts
azure-sdk
thrust
sigabrt
dataview
independentsoft
pyke
historian
freedesktop.org
srand
lib.web.mvc
quicklisp
dukescript
vstest.console.exe
directoryservices
nsmutabledictionary
javafx-webengine
rdtsc
device-manager
openexr
jubula
htmlcleaner
jboss-weld
monomac
prettify
geos
cdc
coverflow
robotics-studio
browser-detection
isnullorempty
multipage
armcc
onsubmit
getmessage
whoosh
telerik-scheduler
yslow
premature-optimization
3gp
rtml
ajax-forms
ntvdm.exe





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