Thursday, August 13, 2020

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

  At the time of `mvn clean install` if you are getting this error then it that means you are at the right place.

com.sun.tools.javac.code.TypeTags


And this error is coming means you are using Lombok dependency in your project. See the Maven dependency in your project and check the Lombok version.


lombok-version


To solve this error you need to use lombok version higher that 1.16.20. Means at least minimum version you can use 1.16.22 or higher than it.

Example:-

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.22</version>
<optional>true</optional>
</dependency>

Share this

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

Post a Comment