Versions Compared

Key

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

...

Make sure maven uses Java

...

7

Although Empire-db is compatible with Java 6 we are ruilding Releases using JDK 7 in order to avoid certificate issues.

Java 8 or later have not been tested and approved.

The build process has been performed using Maven 3.3.9.

If Java 8 or later is installed on the machine, possibly create a mvn7

Currently we probably can only release using JDK 7 as there are certificate issues contacting the repository using JDK 6 (and JDK6 is not supported any more). So apply everything with jdk7 instead

Download the latest JDK 6 http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

Create a mvn6 shell script and add it to your PATH . This script makes sure you use Java 6 in order to be able to use Java 7 to build the release.

Use /Library/Java/JavaVirtualMachines/xxx/Contents/Home as JAVA_HOME for mac/usr/bin/mvn6mvn7

Code Block
#!/bin/sh
JAVA_HOME="/usr/lib/jvm/java-1.6.0-sun"
mvn $@

test the script by running this command:

Code Block
>mvn6 --version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T15:51:42+02:00)
Maven home: /usr/local/apache-maven
Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
Java home: /home/francisdb/Applications/jdk1.6.0_45/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-24-generic", arch: "amd64", family: "unix"
/java7"
mvn $@

test the script by running this command:

Code Block
>mvn7 --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: D:\DevTools\Maven\bin\..
Java version: 1.7.0_71, vendor: Oracle Corporation

 Make sure that the Java version is 1.6.x!

Creating a new RC

Update the changelog file

...