You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2021/12/09 16:09:00 UTC
[cayenne] 01/02: add profile jdk9 and later for tests to pom.xml
This is an automated email from the ASF dual-hosted git repository.
ntimofeev pushed a commit to branch STABLE-4.1
in repository https://gitbox.apache.org/repos/asf/cayenne.git
commit c0c0fff3b7eb1b828af7d33f66619bf7c9ba8391
Author: Oleg Khodokevich <ol...@mail.ru>
AuthorDate: Wed Dec 8 12:01:54 2021 +0300
add profile jdk9 and later for tests to pom.xml
(cherry picked from commit 8a759c92644e7e62f2a437a4feef68ee45b79f76)
---
cayenne-protostuff/pom.xml | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/cayenne-protostuff/pom.xml b/cayenne-protostuff/pom.xml
index 37f9983..ad89ed9 100644
--- a/cayenne-protostuff/pom.xml
+++ b/cayenne-protostuff/pom.xml
@@ -88,6 +88,38 @@
</dependency>
</dependencies>
+ <profiles>
+ <profile>
+ <id>jdk9-test-open-modules</id>
+ <activation>
+ <jdk>[9,)</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>
+ --add-opens java.base/java.lang=ALL-UNNAMED
+ --add-opens java.base/java.util=ALL-UNNAMED
+ </argLine>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <argLine>
+ --add-opens java.base/java.lang=ALL-UNNAMED
+ --add-opens java.base/java.util=ALL-UNNAMED
+ </argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
<build>
<plugins>
<!-- This ensures LICENSE and NOTICE inclusion in all jars -->