From 0e25cf118d88428769f36c98c7a5b624d627ac94 Mon Sep 17 00:00:00 2001
From: vharseko <vharseko@3a-systems.ru>
Date: Wed, 18 May 2022 15:55:29 +0000
Subject: [PATCH] Add support jdk '16','17','18' (#232)
---
pom.xml | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7dcc2a7..b0faf50 100644
--- a/pom.xml
+++ b/pom.xml
@@ -356,7 +356,7 @@
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
+ <version>3.10.1</version>
<configuration>
<fork>true</fork>
<compilerArgs>
@@ -440,9 +440,8 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>3.0.0-M4</version>
+ <version>3.0.0-M4</version> <!-- M6 DecodeException but got java.nio.BufferOverflowException -->
<configuration>
- <argLine>-server</argLine>
<properties>
<property>
<name>usedefaultlisteners</name>
@@ -705,7 +704,15 @@
<module>opendj-packages</module>
</modules>
</profile>
-
+ <profile>
+ <id>jdk16.options</id>
+ <activation>
+ <jdk>[16,)</jdk>
+ </activation>
+ <properties>
+ <argLine>--add-exports java.base/sun.security.x509=ALL-UNNAMED --add-exports java.base/sun.security.tools.keytool=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util.regex=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.naming/javax.naming.spi=ALL-UNNAMED</argLine>
+ </properties>
+ </profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
--
Gitblit v1.10.0