Skip to content

Fix compilation error on ARM64 architecture #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

dirdr
Copy link
Contributor

@dirdr dirdr commented May 20, 2025

Problem

Compilation error when building on ARM64 (MacOS) due to missing Lombok annotation processing.

Solution

Added Lombok annotation processor configuration to maven-compiler-plugin as per Lombok documentation.

Testing

✅ Compiles successfully on ARM64 (MacOS)
✅ Verified compatibility with AMD64 (Ubuntu VM)

@dirdr
Copy link
Contributor Author

dirdr commented May 20, 2025

Error message without annotations processing

[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.792 s
[INFO] Finished at: 2025-05-20T14:45:32+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:testCompile (default-testCompile) on project creedengo-python-plugin: Compilation failure: Compilation failure:
[ERROR] /Users/adrienpelfresne/dev/work/greenCode/python/creedengo-python/src/it/java/org/greencodeinitiative/creedengo/python/integration/tests/GCIRulesBase.java:[64,52] cannot find symbol
[ERROR] symbol: method getProjectKey()
[ERROR] location: class org.greencodeinitiative.creedengo.python.integration.tests.BuildProjectEngine.ProjectToAnalyze
[ERROR] /Users/adrienpelfresne/dev/work/greenCode/python/creedengo-python/src/it/java/org/greencodeinitiative/creedengo/python/integration/tests/GCIRulesIT.java:[34,52] cannot find symbol
[ERROR] symbol: method getProjectKey()
[ERROR] location: class org.greencodeinitiative.creedengo.python.integration.tests.BuildProjectEngine.ProjectToAnalyze
[ERROR] -> [Help 1]

@dedece35 dedece35 requested a review from Copilot May 21, 2025 10:25
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation of Lombok annotation processing setup to resolve ARM64 compilation errors.

  • Updates CHANGELOG with the new Lombok compiler plugin configuration entry.
Files not reviewed (1)
  • pom.xml: Language not supported

@dedece35 dedece35 merged commit 0769f33 into green-code-initiative:main May 21, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants