Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags when using lombok

前端 未结 9 1677
一整个雨季
一整个雨季 2020-11-28 11:44

I have following dependency in pom.xml:


    org.projectlombok
    lombok         


        
9条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 12:34

    This happened with me when I installed maven with brew which also installed Java.15.x that leads to this error.

    To validate, add debug option -X while building with maven and check the Java version that maven is using.

    Delete the Java.15x directory and set JAVA_HOME in your .bashrc with the correct version of Java.

提交回复
热议问题