From 93486301b3101f2fd403991ad3cd487903f62a70 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sun, 19 Jun 2016 12:45:37 +0200 Subject: Allow using JDK 7 bootclasspath when compiling JGit using Java 8 When compiling jgit using Java 8 set system property JDK_HOME to JAVA_HOME path of JDK7 installation to compile against JDK 7 class libraries. Otherwise jgit may hit runtime exceptions when running on Java 7 (e.g. return type of ConcurrentHashMap.keySet() in JDK 8 class library doesn't exist in JDK 7). Example: $ mvn clean install -DJDK_HOME=/.../jdk1.7.0_80.jdk/Contents/Home Bug: 496262 Change-Id: Ib6abe5e544e0492e08b342e1a34b182caf25f94f Signed-off-by: Matthias Sohn --- pom.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index 17995b62bb..81c04cea30 100644 --- a/pom.xml +++ b/pom.xml @@ -188,9 +188,10 @@ UTF-8 UTF-8 - yyyyMMddHHmm ${project.build.directory}/META-INF/MANIFEST.MF + + ${JAVA_HOME} 4.2.0.201601211800-r 0.1.53 @@ -264,6 +265,9 @@ UTF-8 1.7 1.7 + + ${JDK_HOME}${file.separator}jre${file.separator}lib${file.separator}rt.jar${path.separator}${JDK_HOME}${file.separator}jre${file.separator}lib${file.separator}jsse.jar${path.separator}${JDK_HOME}${file.separator}jre${file.separator}lib${file.separator}jce.jar + -- cgit v1.2.3