Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while building project using maven [com/sun/tools/javac/tree/JCTree$JCCompilationUnit]

I am trying to use maven to build my java project, but I always get the error message,

> Execution default of goal org.projectlombok:lombok-maven-plugin:1.18.10.0:delombok failed: A required class was missing while executing org.projectlombok:lombok-maven-plugin:1.18.10.0:delombok: com/sun/tools/javac/tree/JCTree$JCCompilationUnit

I used Java8, maven3. Does anyone know how to fix such issue?

like image 343
Jade Avatar asked Mar 09 '26 08:03

Jade


1 Answers

Sorry, I think I fixed this issue finally. The mistake I made was that I pointed to JAVA_HOME to the JRE directory. After re-direct JAVA_HOME to the JDK directory, this issue is fixed.

like image 185
Jade Avatar answered Mar 11 '26 08:03

Jade



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!