From 2b659e68ad25f9da664c7ef537c115ad60b0b84c Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sun, 19 Jun 2016 13:56:51 +0200 Subject: Allow using JDK 7 bootclasspath when compiling egit using Java 8 When compiling jgit using Java 8 pass the property JDK_HOME mvn clean install -DJDK_HOME= to Maven in order to compile against JDK 7 class libraries. Otherwise egit may hit runtime exceptions when running on Java 7 (e.g. the return type of ConcurrentHashMap.keySet() in the JDK 8 class library does not exist in JDK 7). Bug: 496262 Change-Id: Ib3f681f9844b717e26ad88059e25cb9303668494 Signed-off-by: Matthias Sohn --- pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pom.xml b/pom.xml index 220a4a1e93..b62acb796f 100644 --- a/pom.xml +++ b/pom.xml @@ -77,6 +77,8 @@ -Dorg.eclipse.swtbot.search.timeout=30000 -Dorg.eclipse.swtbot.screenshots.dir=target/screenshots -Xmx1024m -XX:MaxPermSize=150m http://download.eclipse.org/eclipse/updates/4.6milestones/S-4.6M6-201603170200 + + ${JAVA_HOME} @@ -366,6 +368,8 @@ -properties ${project.basedir}/.settings/org.eclipse.jdt.core.prefs -nowarn + -bootclasspath + ${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