You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by rz...@apache.org on 2022/12/31 08:39:45 UTC
[opennlp] branch main updated: OPENNLP-1381 - Fix OpenJDK 18+: CLITest fails with java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opennlp.git
The following commit(s) were added to refs/heads/main by this push:
new f7c37fed OPENNLP-1381 - Fix OpenJDK 18+: CLITest fails with java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
f7c37fed is described below
commit f7c37fed5b93cbedc4ce18a2b9a08966f208453a
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Fri Dec 30 20:40:08 2022 +0100
OPENNLP-1381 - Fix OpenJDK 18+: CLITest fails with java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
---
.github/workflows/maven.yml | 2 +-
opennlp-tools/pom.xml | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index a7c734e3..a0538484 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
- java: [ 11 ]
+ java: [ 11, 17, 18, 19 ]
experimental: [false]
# include:
# - java: 18-ea
diff --git a/opennlp-tools/pom.xml b/opennlp-tools/pom.xml
index d8e1b5a1..50d8c083 100644
--- a/opennlp-tools/pom.xml
+++ b/opennlp-tools/pom.xml
@@ -147,4 +147,34 @@
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>jdk18+</id>
+ <activation>
+ <jdk>[18,]</jdk>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${maven.surefire.plugin}</version>
+ <configuration>
+ <argLine>-Xmx2048m -Djava.security.manager=allow</argLine>
+ <forkCount>${opennlp.forkCount}</forkCount>
+ <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
+ <excludes>
+ <exclude>**/stemmer/*</exclude>
+ <exclude>**/stemmer/snowball/*</exclude>
+ <exclude>**/*IT.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+ </profiles>
</project>