Skip to content

Commit

Permalink
Enable the security manager when testing with Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
ebourg committed Oct 11, 2023
1 parent bb884e6 commit 282e6c4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,27 @@
</build>

<profiles>
<profile>
<id>jpms11</id>
<activation>
<jdk>11</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-exports jdk.crypto.cryptoki/sun.security.pkcs11.wrapper=ALL-UNNAMED ${argLine}</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jpms</id>
<activation>
<jdk>[9,)</jdk>
<jdk>[17,)</jdk>
</activation>
<build>
<plugins>
Expand All @@ -231,6 +248,7 @@
--add-exports jdk.crypto.cryptoki/sun.security.pkcs11.wrapper=ALL-UNNAMED
--add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED
--add-opens java.base/sun.net.www.protocol.https=ALL-UNNAMED
-Djava.security.manager=allow
${argLine}
</argLine>
</configuration>
Expand Down

0 comments on commit 282e6c4

Please sign in to comment.