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

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

commit 402c4601a18d641adc1033c5fb1e3db4ce3c5a6b
Author: Gary D. Gregory <[email protected]>
AuthorDate: Mon Dec 23 12:52:18 2024 -0500

    Fix JPMS for test output
---
 pom.xml | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index b9a552e4..7349f97a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -259,11 +259,14 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
-            <!-- to increase memory for tests on Travis CI -->
             <argLine>-Xmx64m</argLine>
         </configuration>
       </plugin>
@@ -639,6 +642,25 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>java17</id>
+      <activation>
+        <jdk>[17,)</jdk>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <!-- For AbstractTestSuite output of debug information. -->
+              <!-- ${argLine} must be there for JaCoCo. -->
+              <argLine>${argLine} --add-opens 
java.base/java.lang=ALL-UNNAMED</argLine>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
   <developers>
     <developer>

Reply via email to