You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by sm...@apache.org on 2022/11/23 01:02:11 UTC

[opennlp] branch master updated: OPENNLP-1397: Build should fail fast if an unsupported JDK is used (#437)

This is an automated email from the ASF dual-hosted git repository.

smarthi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/master by this push:
     new c13b35a5 OPENNLP-1397: Build should fail fast if an unsupported JDK is used (#437)
c13b35a5 is described below

commit c13b35a5ae7b7eb5526245a405d934f1b1efa2be
Author: Suneel Marthi <sm...@apache.org>
AuthorDate: Tue Nov 22 20:02:06 2022 -0500

    OPENNLP-1397: Build should fail fast if an unsupported JDK is used (#437)
---
 README.md | 2 +-
 pom.xml   | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 4e07f699..e982dbaa 100644
--- a/README.md
+++ b/README.md
@@ -98,7 +98,7 @@ For more details please check our [documentation](http://opennlp.apache.org/docs
 
 ## Building OpenNLP
 
-At least JDK 8 and Maven 3.3.9 are required to build the library.
+At least JDK 11 and Maven 3.3.9 are required to build the library.
 
 After cloning the repository go into the destination directory and run:
 
diff --git a/pom.xml b/pom.xml
index d2d2c8e0..5c60c87f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -147,7 +147,7 @@
 		<java.version>11</java.version>
 		<maven.version>3.3.9</maven.version>
 		<commons.io.version>2.6</commons.io.version>
-		<enforcer.plugin.version>3.0.0-M2</enforcer.plugin.version>
+		<enforcer.plugin.version>3.0.0-M3</enforcer.plugin.version>
 		<glassfish.version>2.30.1</glassfish.version>
 		<junit.version>5.9.1</junit.version>
 		<morfologik.version>2.1.7</morfologik.version>
@@ -409,6 +409,7 @@
 				<executions>
 					<execution>
 						<id>enforce-java</id>
+						<phase>validate</phase>
 						<goals>
 							<goal>enforce</goal>
 						</goals>