Issue
We have a Java 11 server on EC2 that has just started failing to build with the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)
on project showhow-server: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x49d0e934) cannot access class
com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler
does not export com.sun.tools.javac.processing to unnamed module @0x49d0e934 -> [Help 1]
[ERROR]
The build is from BitBucket pipelines.
Any idea what it could be?
Solution
Upgrade lombok dependency to 1.18.20
Answered By - DrenK Answer Checked By - Senaida (WPSolving Volunteer)