Skip to content

Commit 768c036

Browse files
committed
remove --add-exports option as unmapping is clean now, but add --add-opens option due to different reflection hack probably used in guice, graphhopper#701
1 parent 0e85733 commit 768c036

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pom.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,20 +300,17 @@
300300
<artifactId>maven-failsafe-plugin</artifactId>
301301
<configuration>
302302
<systemPropertyVariables />
303-
<argLine>--add-exports java.base/jdk.internal.ref=ALL-UNNAMED</argLine>
303+
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
304304
</configuration>
305305
</plugin>
306306
<plugin>
307307
<groupId>org.apache.maven.plugins</groupId>
308308
<artifactId>maven-surefire-plugin</artifactId>
309309
<version>2.19.1</version>
310310
<configuration>
311-
<!-- Without the add-exports/addExports options we get
312-
java.lang.reflect.InaccessibleObjectException: Unable to make member of class
313-
jdk.internal.ref.Cleaner accessible: module java.base does not export jdk.internal.ref to unnamed module @bd8be5
314-
See #852
311+
<!-- See #852 and #701 for the add exports or add opens option
315312
-->
316-
<argLine>-Xmx100m -Xms100m --add-exports java.base/jdk.internal.ref=ALL-UNNAMED</argLine>
313+
<argLine>-Xmx100m -Xms100m --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
317314
</configuration>
318315
</plugin>
319316
</plugins>

0 commit comments

Comments
 (0)