Skip to content

Commit 402c460

Browse files
committed
Fix JPMS for test output
1 parent 82bd9bb commit 402c460

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

pom.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,14 @@
259259
</execution>
260260
</executions>
261261
</plugin>
262+
<plugin>
263+
<groupId>org.jacoco</groupId>
264+
<artifactId>jacoco-maven-plugin</artifactId>
265+
</plugin>
262266
<plugin>
263267
<groupId>org.apache.maven.plugins</groupId>
264268
<artifactId>maven-surefire-plugin</artifactId>
265269
<configuration>
266-
<!-- to increase memory for tests on Travis CI -->
267270
<argLine>-Xmx64m</argLine>
268271
</configuration>
269272
</plugin>
@@ -639,6 +642,25 @@
639642
</plugins>
640643
</build>
641644
</profile>
645+
<profile>
646+
<id>java17</id>
647+
<activation>
648+
<jdk>[17,)</jdk>
649+
</activation>
650+
<build>
651+
<plugins>
652+
<plugin>
653+
<groupId>org.apache.maven.plugins</groupId>
654+
<artifactId>maven-surefire-plugin</artifactId>
655+
<configuration>
656+
<!-- For AbstractTestSuite output of debug information. -->
657+
<!-- ${argLine} must be there for JaCoCo. -->
658+
<argLine>${argLine} --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
659+
</configuration>
660+
</plugin>
661+
</plugins>
662+
</build>
663+
</profile>
642664
</profiles>
643665
<developers>
644666
<developer>

0 commit comments

Comments
 (0)