Skip to content

Commit b004c85

Browse files
committed
Fix tests on jdk 17/21
1 parent 9f45076 commit b004c85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci-build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
matrix:
1414
java_version:
1515
- 11
16-
# Errors with `java.lang.IllegalArgumentException: ArquillianServletRunnerEE9 not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.`
17-
# Bumping various Arquillian dependencies does not fix, leave as just Java 11
18-
# - 17
16+
- 21
1917

2018
steps:
2119
- name: Setup Java

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@
244244
<artifactId>maven-surefire-plugin</artifactId>
245245
<version>3.5.3</version>
246246
<configuration>
247-
<argLine>-Xmx768m -XX:MaxMetaspaceSize=256m</argLine>
247+
<!-- Required for jdk 17+ -->
248+
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
249+
248250
<systemPropertyVariables>
249251
<java.util.logging.config.file>
250252
${project.build.testOutputDirectory}/logging.properties

0 commit comments

Comments
 (0)