I have following dependency in pom.xml:
org.projectlombok
lombok
I have the same problem and I solve it by adding this code in pom.xml
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.0.0</version>
</dependency>
I encountered this issue when upgrading my project from JDK 8 to JDK 12 and using gradle instead of maven and using the io.franzbecker:gradle-lombok
gradle plugin to configure lombok automatically.
In this scenario changing buildScript.dependencies from classpath "io.franzbecker:gradle-lombok:1.14"
to classpath "io.franzbecker:gradle-lombok:3.2.0"
did the trick for me.
Solved the issue by upgrading lombok version from 1.16.18 to 1.16.22 . I suspect any compatible version higher than .22 might do the trick.
I am able to solve the problem in my maven project with Java-10 and Lombok 1.18.2.
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.2</version>
<scope>provided</scope>
</dependency>
I had changed the lombok
version and it worked for me.
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.22</version>
<scope>provided</scope>
</dependency>
Solved this by:
1) download the lombok-edge.jar,
2) using following dependency:
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.21</version>
<scope>system</scope>
<systemPath>/Users/xxx/Downloads/lombok-edge.jar</systemPath>
</dependency>