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

mvn release:prepare doesn't work using maven 3
How can I get the maven-site-plugin to resolve the parent pom.xml of my multimodule Maven project?
Maven profile properties not overriding values in springs configurations
Maven compilation
Spring ROO database reverse engineering with renamed context file
Tycho Compiler not picking up generated source code
gradle clean cleanEclipse eclipse command is not able to build while installing mifos on windows
Maven plugin for Eclipse Juno -> can't find conf directory under .m2
Maven 3.0.4 fails to deploy but Maven 3.0.0 works fine
Failed to execute goal org.apache.maven.plugins: The specified web.xml file 'D:\WEB-INF\web.xml' does not exist
Pom.xml throws Missing artifact error for org.springframework.security.extentions continously
neo4j.test: “package org.neo4j.test does not exist” error in maven
How can I reference a local Mercurial repository in Maven if it is two directories up?
Set up Maven in Intellij with TestNG using POM to read .xml suite
Plugin execution not covered by lifecycle configuration error in Eclipse Juno
Augment maven compilation task

Categories

HOME
gitlab
react-virtualized
office365api
relay
objectgears
android-4.4-kitkat
getelementsbytagname
dxl
disassembler
fingerprint
django-imagekit
qore
webrequest
kibana-4
vault
qt-creator
zend-framework3
apache-cayenne
vb.net-2010
netflix
vaadin7
saxon
serilog
dbext
scriptcs
errorlevel
web-sql
kvc
telerik-reporting
bootstrap-tour
jndi
rundeck
web-api-testing
windows-server-2000
windowbuilder
flink-streaming
webtest
commit
language-concepts
sequential
hexo
bower-install
main
espeak
neuroscience
document.write
trim
nomethoderror
fakeiteasy
user-accounts
azure-application-gateway
termination
react-scripts
multipeer-connectivity
libusb-win32
python-cryptography
color-profile
query-performance
specrun
objective-c-swift-bridge
setuptools
android-textview
home-directory
skobbler-maps
clang-static-analyzer
connect-by
nsviewcontroller
dlna
bluemix-app-scan
freelancer.com-api
endeca-workbench
tween
qpainter
markers
google-reader
jubula
hyprlinkr
oracle-warehouse-builder
mcts
ivyde
jmapviewer
wsdl-2.0
unc
trusted
automount
netbeans-6.9
nsdatecomponents
rfc1123
yetanotherforum
appendto
inotifycollectionchanged
jmock
xfbml
dmx512
jquery-ui-droppable
compiler-specific
mtj
commodore

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