From b61e9162693bdbe5eefe81e2a6cf8c5a5756dd55 Mon Sep 17 00:00:00 2001 From: David Cromberge Date: Wed, 18 Aug 2021 17:25:06 +0100 Subject: [PATCH] Add instructions for local MR-jar testing Verified that the C/I tests actually do make use of the `sun.nio.ch` package for memory-mapped files. Removing the runtime JPMS flag for this package from Surefire results in a warning, since the tests use the classpath and not the module path. Using the module path in the tests would require a local `module-info.java` in the tests, which would present problems for Java8. Using Datasketches Memory for memory-mapped in a JPMS-enabled user application requires explicit opens access to the `sun.nio.ch` package otherwise the user application will exit with a hard failure instead of a warning. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 66943e2e..a0442a24 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,10 @@ To run javadoc on this multi-module project, use: $ mvn clean process-classes javadoc:javadoc -DskipTests=true +To run the CI tests against the multi-release JAR for specific JVM versions [9-13], use: + + $ mvn clean package -Denvironment=ci -Dmatrix.jdk.version=9 + To run the eclipse plugin on this multi-module project, use: $ mvn clean process-classes eclipse:eclipse -DskipTests=true