You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2020/07/17 22:53:38 UTC

[maven-surefire] branch master updated: [SUREFIRE-1820] Using SurefireForkNodeFactory with JDK8 results in NoSuchMethodError

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

tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/master by this push:
     new 24328c5  [SUREFIRE-1820] Using SurefireForkNodeFactory with JDK8 results in NoSuchMethodError
24328c5 is described below

commit 24328c5ce9bc71dabab7801ffe8ccb74bad8aab3
Author: tibordigana <ti...@apache.org>
AuthorDate: Sat Jul 18 00:53:26 2020 +0200

    [SUREFIRE-1820] Using SurefireForkNodeFactory with JDK8 results in NoSuchMethodError
---
 pom.xml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/pom.xml b/pom.xml
index b11f0fd..3196938 100644
--- a/pom.xml
+++ b/pom.xml
@@ -760,5 +760,33 @@
         <jdk.home>${java.home}</jdk.home>
       </properties>
     </profile>
+      <profile>
+          <id>apache-release</id>
+          <build>
+
+              <!-- after Maven Compiler 3.8.1 is fixed, use maven.compiler.release, see SUREFIRE-1820 -->
+              <plugins>
+                  <plugin>
+                      <groupId>org.apache.maven.plugins</groupId>
+                      <artifactId>maven-enforcer-plugin</artifactId>
+                      <executions>
+                          <execution>
+                              <id>enforce-java</id>
+                              <goals>
+                                  <goal>enforce</goal>
+                              </goals>
+                              <configuration>
+                                  <rules combine.self="override">
+                                      <requireJavaVersion>
+                                          <version>[1.8, 1.9)</version>
+                                      </requireJavaVersion>
+                                  </rules>
+                              </configuration>
+                          </execution>
+                      </executions>
+                  </plugin>
+              </plugins>
+          </build>
+      </profile>
   </profiles>
 </project>