You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pom.xml
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,27 @@
159
159
</dependency>
160
160
</dependencies>
161
161
</profile>
162
+
<profile>
163
+
<id>new-jdks</id>
164
+
<activation>
165
+
<jdk>[16.0,)</jdk>
166
+
</activation>
167
+
<build>
168
+
<plugins>
169
+
<plugin>
170
+
<groupId>org.apache.maven.plugins</groupId>
171
+
<artifactId>maven-surefire-plugin</artifactId>
172
+
<version>2.19</version>
173
+
<configuration>
174
+
<!-- Fix for "java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Map java.util.Collections$UnmodifiableMap.m accessible: module java.base does not "opens java.util" to unnamed module @75eeccf5" -->
175
+
<argLine>
176
+
--add-opens=java.base/java.util=ALL-UNNAMED
177
+
</argLine>
178
+
</configuration>
179
+
</plugin>
180
+
</plugins>
181
+
</build>
182
+
</profile>
162
183
</profiles>
163
184
164
185
<dependencies>
@@ -215,6 +236,7 @@
215
236
<plugin>
216
237
<groupId>org.apache.maven.plugins</groupId>
217
238
<artifactId>maven-enforcer-plugin</artifactId>
239
+
<!-- Can't use 3.4.1 as that needs Maven 3.2.5 -->
0 commit comments