Skip to content

Instantly share code, notes, and snippets.

@yanaga
Created January 20, 2012 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanaga/1644440 to your computer and use it in GitHub Desktop.
Save yanaga/1644440 to your computer and use it in GitHub Desktop.
Sample Maven 3.0.x pom.xml for jar signing
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.yanaga</groupId>
<artifactId>jarsigner</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jarsigner</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>sign</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<keystore>${basedir}/keystore</keystore>
<alias>me</alias>
<storepass>changeit</storepass>
<keypass>changeit</keypass>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment