From 6415e2841980be9d72c80b959d12bc42521755f2 Mon Sep 17 00:00:00 2001 From: water <672684719@qq.com> Date: Tue, 25 Aug 2026 17:49:34 +0800 Subject: [PATCH] fix: restore Log4j2Plugins.dat in apm-toolkit-log4j-2.x Since 9.5.0 the released apm-toolkit-log4j-2.x jar no longer contains META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat. Root cause: the root pom declares annotationProcessorPaths (Lombok only), which makes javac stop discovering annotation processors from the compile classpath. Log4j2's PluginProcessor from the provided log4j-core dependency never runs, so %traceId and %sw_ctx silently break. Declare the compiler plugin in this module with annotationProcessorPaths including both Lombok and log4j-core. --- .../apm-toolkit-log4j-2.x/pom.xml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/apm-application-toolkit/apm-toolkit-log4j-2.x/pom.xml b/apm-application-toolkit/apm-toolkit-log4j-2.x/pom.xml index 8c53d53868..69ac75ceba 100644 --- a/apm-application-toolkit/apm-toolkit-log4j-2.x/pom.xml +++ b/apm-application-toolkit/apm-toolkit-log4j-2.x/pom.xml @@ -39,4 +39,34 @@ provided + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + + org.projectlombok + lombok + ${lombok.version} + + + org.apache.logging.log4j + log4j-core + ${log4j-core.version} + + + + + +