This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch pom-upgrade
in repository https://gitbox.apache.org/repos/asf/skywalking-java.git
The following commit(s) were added to refs/heads/pom-upgrade by this push:
new f1c238dc55 Revert most of plugin config and override
maven.compiler.release to get rid of --release in JDK compiling.
f1c238dc55 is described below
commit f1c238dc55f6bbab7ece6b8aa9316b714554e45a
Author: Wu Sheng <[email protected]>
AuthorDate: Thu Aug 21 16:15:08 2025 +0700
Revert most of plugin config and override maven.compiler.release to get rid
of --release in JDK compiling.
---
.../bootstrap-plugins/jdk-http-plugin/pom.xml | 40 +++++++++++++++++++---
1 file changed, 36 insertions(+), 4 deletions(-)
diff --git a/apm-sniffer/bootstrap-plugins/jdk-http-plugin/pom.xml
b/apm-sniffer/bootstrap-plugins/jdk-http-plugin/pom.xml
index 8400f5c40c..8bfa622165 100755
--- a/apm-sniffer/bootstrap-plugins/jdk-http-plugin/pom.xml
+++ b/apm-sniffer/bootstrap-plugins/jdk-http-plugin/pom.xml
@@ -32,17 +32,49 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>8</maven.compiler.target>
+ <!-- Reset this to the blank value to avoid using -release in JDK
compiling -->
+ <maven.compiler.release></maven.compiler.release>
</properties>
<build>
<plugins>
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ </plugin>
+ <!-- Ignore the error of javadoc build -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <failOnError>false</failOnError>
+ </configuration>
+ </plugin>
+ <!-- Build a dummy(empty) javadoc to satisfy maven central
requirements -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.7.0</version>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>empty-javadoc-jar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <classifier>javadoc</classifier>
+
<classesDirectory>${basedir}/javadoc</classesDirectory>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>