From 358c3c9e9e499d880150e23c5c981bc8109d3672 Mon Sep 17 00:00:00 2001 From: John Blum Date: Mon, 10 May 2021 12:52:15 -0700 Subject: [PATCH] Set the --add-opens JVM option for java.nio classes (e.g. DirectByteBuffer) to workaround Apache Geode issues on Java 16. Configure Maven Toolchains Plugin and the Maven Surefire Plugin to use Maven Toolchains with JDK 16. Resolves gh-497. --- spring-data-geode/pom.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/spring-data-geode/pom.xml b/spring-data-geode/pom.xml index 3bfa36a0..290786a0 100644 --- a/spring-data-geode/pom.xml +++ b/spring-data-geode/pom.xml @@ -20,6 +20,8 @@ ${basedir}/.. + 3.8.1 + 3.0.0 1.13.3 @@ -263,10 +265,15 @@ org.apache.maven.plugins maven-surefire-plugin + --add-opens java.base/java.nio=ALL-UNNAMED **/*Tests.java **/*Test.java + + 16 + oracle + false ${basedir}/src/test/resources/java-util-logging.properties @@ -277,6 +284,26 @@ + + org.apache.maven.plugins + maven-toolchains-plugin + ${maven-toolchains-plugin.version} + + + + toolchain + + + + + + + 16 + oracle + + + +