From 7793b4fc779c2cc3f21e02bec2befd5f58b9c211 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 2 Oct 2021 14:40:31 +0200 Subject: [PATCH] open java.util to unnamed module for testing Illegal access permission is no longer available with JDK 17. To allow System Lambda to mock the environment, we open the java.util package explicitly for testing. --- pom.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 506afd7..5c15059 100644 --- a/pom.xml +++ b/pom.xml @@ -98,7 +98,7 @@ @{argLine} - --illegal-access=permit + --add-opens java.base/java.util=ALL-UNNAMED --add-opens de.stklcode.jvault.connector/de.stklcode.jvault.connector=ALL-UNNAMED --add-opens de.stklcode.jvault.connector/de.stklcode.jvault.connector.exception=ALL-UNNAMED --add-opens de.stklcode.jvault.connector/de.stklcode.jvault.connector.model=ALL-UNNAMED @@ -135,7 +135,6 @@ com.github.stefanbirkner system-lambda 1.2.0 - test com.github.tomakehurst