From 53d5ca90bc2694a7a4c9d4a154cad46859a6020a Mon Sep 17 00:00:00 2001 From: Hallvard Traetteberg <hal@ntnu.no> Date: Mon, 6 Sep 2021 22:58:59 +0200 Subject: [PATCH] Make surefire work with modules --- javafx-template/pom.xml | 5 +++++ modules-template/ui/pom.xml | 5 +++++ packages-template/pom.xml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/javafx-template/pom.xml b/javafx-template/pom.xml index 010f57c..3488ad5 100644 --- a/javafx-template/pom.xml +++ b/javafx-template/pom.xml @@ -81,6 +81,11 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> + <configuration> + <argLine> + --add-opens app/app=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED + </argLine> + </configuration> </plugin> <plugin> diff --git a/modules-template/ui/pom.xml b/modules-template/ui/pom.xml index 51fb68a..71993fd 100644 --- a/modules-template/ui/pom.xml +++ b/modules-template/ui/pom.xml @@ -75,6 +75,11 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <argLine> + --add-opens calc.ui/ui=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED + </argLine> + </configuration> </plugin> <plugin> diff --git a/packages-template/pom.xml b/packages-template/pom.xml index 7c81cbc..87aaf89 100644 --- a/packages-template/pom.xml +++ b/packages-template/pom.xml @@ -81,6 +81,11 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> + <configuration> + <argLine> + --add-opens app/ui=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED + </argLine> + </configuration> </plugin> <plugin> -- GitLab