You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2022/02/10 21:09:58 UTC

[commons-dbcp] branch master updated: Get tests passing on Java 8 and Java 9+

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

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git


The following commit(s) were added to refs/heads/master by this push:
     new 01e4687  Get tests passing on Java 8 and Java 9+
01e4687 is described below

commit 01e468717660b63d1a28fc9dcf41692cea493ca2
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Feb 10 21:09:54 2022 +0000

    Get tests passing on Java 8 and Java 9+
---
 pom.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/pom.xml b/pom.xml
index 5827f89..0549668 100644
--- a/pom.xml
+++ b/pom.xml
@@ -359,6 +359,7 @@
     <spotbugs.skip>false</spotbugs.skip>
     <clirr.skip>true</clirr.skip>
     <findbugs.skip>true</findbugs.skip>
+    <surefire.argline></surefire.argline>
   </properties>
 
   <build>
@@ -426,6 +427,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
+          <argLine>${surefire.argline}</argLine>
           <systemPropertyVariables>
             <!-- Ensure that logging messages can be inspected -->
             <org.apache.commons.logging.Log>org.apache.commons.dbcp2.StackMessageLog</org.apache.commons.logging.Log>
@@ -551,5 +553,14 @@
     </plugins>
   </reporting>
   <profiles>
+    <profile>
+      <id>jdk9-plus</id>
+      <activation>
+        <jdk>[1.9,)</jdk>
+      </activation>
+      <properties>
+        <surefire.argline>--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</surefire.argline>
+      </properties>
+    </profile>
   </profiles>
 </project>