File 0003-Fix-tests-with-modular-javas.patch of Package maven-install-plugin.28016
From b4aee1ca2ac7911f7c9c98dd338ee4f6183129ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch>
Date: Wed, 11 May 2022 10:31:57 +0200
Subject: [PATCH 3/4] Fix tests with modular javas
---
pom.xml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/pom.xml b/pom.xml
index 78cfb73..b10e114 100644
--- a/pom.xml
+++ b/pom.xml
@@ -205,6 +205,22 @@
</pluginManagement>
</build>
</profile>
+ <profile>
+ <id>jdk9+</id>
+ <activation>
+ <jdk>[9,)</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
--
2.36.0