Search code examples
javamaven-3lombok

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?


Solution

  • 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.