JDK 17: Open jdk.internal.util.random for mockito/bytebuddy
</compilerArgs>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Illegal reflective access in ProbabilisticSampleRateTest by mockito/bytebuddy -->
+ <argLine>
+ --add-opens=java.base/jdk.internal.util.random=ALL-UNNAMED
+ </argLine>
+ </configuration>
+ </plugin>
<plugin>
<groupId>com.yahoo.vespa</groupId>
<artifactId>abi-check-plugin</artifactId>
