...
- you have created your GPG keys. For more information, please refer to Making GPG Keys and http://www.apache.org/dev/release-signing.html .
- you have a GPG client installed and on your shell's path. See http://www.gnupg.org/.
- you have a Subversion 1.5+ client installed and on your shell's path. See http://subversion.tigris.org/.
- you have a Java 1.4.2 JDK installed and on your shell's path. See http://java.sun.com/j2se/1.4.2/download.html.
- you have set the environment variable MAVEN_OPTS=-Xmx512m
- you are using Maven 2.0.x or 2.2.1+, as Maven 2.1.x is known to produce wrong gpg pom signatures (see MGPG-14).
Make sure maven uses Java
...
6
Download the latest JDK 5 6 http://www.oracle.com/technetwork/java/javasebusinessjavase/downloads/java-archivejdk6-downloads-javase5-419410.html#jdk-1.5.0_22-oth-JPR1637591.html
Create a mvn5 mvn6 shell script and add it to your PATH. This script makes sure you use Java 5 6 to build the release.
/usr/bin/mvn5
Code Block |
---|
#!/bin/sh JAVA_HOME="/usr/lib/jvm/java-1.56.0-sun" mvn $@ |
test the script by running this command:
Code Block |
---|
>mvn5 --version Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100) Java version: 1.56.0_1833 Java home: /usr/lib/jvm/java-1.56.0-sun-1.56.0.1833/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.28-15-generic" arch: "amd64" Family: "unix" |
Make sure that the Java version is 1.56.x!
Creating a new RC
Update the changelog file
...