@@ -823,6 +823,24 @@ limitations under the License.
823823 <maven .compiler.source>${java.version} </maven .compiler.source>
824824 <maven .compiler.target>${java.version} </maven .compiler.target>
825825 </properties >
826+ <build >
827+ <plugins >
828+ <plugin >
829+ <groupId >org.apache.maven.plugins</groupId >
830+ <artifactId >maven-compiler-plugin</artifactId >
831+ <configuration >
832+ <source >11</source >
833+ <target >11</target >
834+ <compilerArgs combine.children=" append" >
835+ <arg >--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg >
836+ <arg >--add-exports=java.management/sun.management=ALL-UNNAMED</arg >
837+ <arg >--add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED</arg >
838+ <arg >--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED</arg >
839+ </compilerArgs >
840+ </configuration >
841+ </plugin >
842+ </plugins >
843+ </build >
826844 </profile >
827845 <profile >
828846 <id >java-17-target</id >
@@ -834,6 +852,33 @@ limitations under the License.
834852 <maven .compiler.source>${java.version} </maven .compiler.source>
835853 <maven .compiler.target>${java.version} </maven .compiler.target>
836854 </properties >
855+ <build >
856+ <plugins >
857+ <plugin >
858+ <groupId >org.apache.maven.plugins</groupId >
859+ <artifactId >maven-compiler-plugin</artifactId >
860+ <configuration >
861+ <source >17</source >
862+ <target >17</target >
863+ <compilerArgs combine.children=" append" >
864+ <arg >--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg >
865+ <arg >--add-exports=java.management/sun.management=ALL-UNNAMED</arg >
866+ <arg >--add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED</arg >
867+ <arg >--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED</arg >
868+ <arg >--add-exports=java.base/java.util=ALL-UNNAMED</arg >
869+ <arg >--add-opens</arg >
870+ <arg >java.base/java.lang=ALL-UNNAMED</arg >
871+ <arg >--add-opens</arg >
872+ <arg >java.base/java.lang.reflect=ALL-UNNAMED</arg >
873+ <arg >--add-opens</arg >
874+ <arg >java.base/java.util.concurrent=ALL-UNNAMED</arg >
875+ <arg >--add-opens</arg >
876+ <arg >java.base/java.util=ALL-UNNAMED</arg >
877+ </compilerArgs >
878+ </configuration >
879+ </plugin >
880+ </plugins >
881+ </build >
837882 </profile >
838883 </profiles >
839884</project >
0 commit comments