Skip to content

Commit be88fe2

Browse files
committed
Fix JDK compiling in latest JDK.
1 parent 7bd0add commit be88fe2

File tree

1 file changed

+14
-1
lines changed
  • apm-sniffer/bootstrap-plugins/jdk-http-plugin

1 file changed

+14
-1
lines changed

apm-sniffer/bootstrap-plugins/jdk-http-plugin/pom.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
~
1717
-->
1818

19-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2021
<parent>
2122
<groupId>org.apache.skywalking</groupId>
2223
<artifactId>bootstrap-plugins</artifactId>
@@ -40,6 +41,18 @@
4041
<plugin>
4142
<artifactId>maven-deploy-plugin</artifactId>
4243
</plugin>
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-compiler-plugin</artifactId>
47+
<version>3.11.0</version>
48+
<configuration>
49+
<release>17</release>
50+
<compilerArgs>
51+
<arg>--add-exports</arg>
52+
<arg>java.base/sun.net.www=ALL-UNNAMED</arg>
53+
</compilerArgs>
54+
</configuration>
55+
</plugin>
4356
<!-- Ignore the error of javadoc build -->
4457
<plugin>
4558
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)