Skip to content

Instantly share code, notes, and snippets.

@Qkyrie
Created July 17, 2013 08:03
Show Gist options
  • Save Qkyrie/6018649 to your computer and use it in GitHub Desktop.
Save Qkyrie/6018649 to your computer and use it in GitHub Desktop.
sign jar with maven
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>sign</id>
<phase>prepare-package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<archiveDirectory>${applet.directory}</archiveDirectory>
<keystore>signing/keystore.jks</keystore>
<alias>codesigning</alias>
<storepass>myPass</storepass>
<keypass>myKeypass</keypass>
<verbose>false</verbose>
<removeExistingSignatures>true</removeExistingSignatures>
<includes>
<include>*.jar</include>
</includes>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment