Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.htmlImage Modified

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

...