From 934c0b6db5c7a93d84340d6c88bcb1ddae8b1cbd Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Tue, 7 Jun 2022 15:20:09 +0200 Subject: [PATCH] --add-opens can be used only in java-17 --- .gitlab-ci.yml | 2 ++ pom.xml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91174a0265..2027cf5ed0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,8 @@ test:frontend: stage: test coverage: '/(\d+.\d+) \% covered/' before_script: + # java.desktop module does not export Sun Graphics implementation for mockito + - export MAVEN_OPTS="$MAVEN_OPTS -DargLine=--add-opens=java.desktop/sun.java2d=ALL-UNNAMED" - apt-get update - DEBIAN_FRONTEND=noninteractive apt-get install -y libxrender1 libxtst6 fontconfig libfreetype6 - mvn dependency:purge-local-repository -DmanualInclude="lcsb.mapviewer" diff --git a/pom.xml b/pom.xml index c0a85b13f5..fe08b39548 100644 --- a/pom.xml +++ b/pom.xml @@ -213,7 +213,6 @@ <configuration> <useSystemClassLoader>false</useSystemClassLoader> <surefire.rerunFailingTestsCount>4</surefire.rerunFailingTestsCount> - <argLine>--add-opens java.desktop/sun.java2d=ALL-UNNAMED</argLine> </configuration> </plugin> <plugin> -- GitLab