Skip to content
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

Possible bug found in pom.xml #1

Closed
CharlesStockman opened this issue Jun 23, 2022 · 2 comments
Closed

Possible bug found in pom.xml #1

CharlesStockman opened this issue Jun 23, 2022 · 2 comments

Comments

@CharlesStockman
Copy link

Thanks for creating this repository.

After doing a git clone, I executed "mvn clean install" ( on two machines OSX and linux ) and the error message was the same for both ( shown below).

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project kbe-rest-brewery: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x1e56bc9b) 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 @0x1e56bc9b -> [Help 1]

The fix was to change org.lombok.version from 1.18.18 to 1.18.24 in the pom.xml file

@led93
Copy link

led93 commented Jul 9, 2022

It is a bug reported originally in projectlombok/lombok#2681.
It seems to affect openjdk versions 16+.
Moving from from 1.18.18 to 1.18.24 solves the issue.

led93 added a commit to led93/kbe-rest-brewery that referenced this issue Jul 9, 2022
@CharlesStockman
Copy link
Author

We have an answer to the issue

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

No branches or pull requests

2 participants