| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
fix build failure: ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project apm-agent-core: Compilation failure: Compilation failure: [ERROR] /opt/code/git/skywalking-java/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/TraceSegmentRef.java:[51,31] cannot find symbol [ERROR] symbol: method getTraceId() ```
|
Which env does you face this? The project is built successfully in local and CI env(s). |
Sorry, something went wrong.
It happens in two situations:
JDK version> java -version openjdk version "23.0.2" 2025-01-21 OpenJDK Runtime Environment Temurin-23.0.2+7 (build 23.0.2+7) OpenJDK 64-Bit Server VM Temurin-23.0.2+7 (build 23.0.2+7, mixed mode, sharing) Maven version> mvn -v Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9) Maven home: /opt/soft/apache-maven-3.9.4 Java version: 23.0.2, vendor: Eclipse Adoptium, runtime: /Users/leeyazhou/Library/Java/JavaVirtualMachines/temurin-23.0.2-2/Contents/Home Default locale: en_CN, platform encoding: UTF-8 OS name: "mac os x", version: "15.6", arch: "aarch64", family: "mac" |
Sorry, something went wrong.
|
We only support Java 11/17/21, and consider that you just bumped up lombok, could you recheck whether this is a JDK23-specific issue? And notice, JDK23 is not a TLS version. Do you have some specific reasons to use that? |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR fixes a build failure caused by missing getter methods in Lombok-annotated classes by configuring the Maven compiler plugin to properly process Lombok annotations during compilation.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Sorry, something went wrong.
| <path> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> | ||
| <version>${lombok.version}</version> |
There was a problem hiding this comment.
The Lombok version is referenced using a property ${lombok.version} but this property may not be defined in the POM. Consider verifying that this property is declared in the properties section or use an explicit version number.
Sorry, something went wrong.
There was a problem hiding this comment.
@leeyazhou I think this is a false alarm?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes. The property ${lombok.version} is defined in line 86 in the ROOT pom.xml
<lombok.version>1.18.30</lombok.version>
Sorry, something went wrong.
There was a problem hiding this comment.
This should be good regardless which JDK version
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
fix build failure: