1

I have a Spring Boot application with Java 11. I am using IntelliJ 2022.1.4 (Ultimate Edition). Lombok plug-in is installed and enabled in the IDE - version bundled 221.6008.13. In my pom.xml I have the maven dependency for project Lombok - version 1.18.28 with scope provided.

Annotation processing is enabled in the IDE settings. I’m using maven-compiler-plug-in. The issue is that when I try to build the project, I have error that the getters and setters methods in my classes are not defined (I have the annotations @Getter @Setter).

I already tried with restarts, invalidate caches etc.

3
  • Sounds like you are missing the Lombok annotation processor in your Maven config. You need to tell your build system to actually process the annotations, doing that only in the IDE is not enough.
    – user8681
    Commented Jun 16, 2023 at 7:53
  • I tried adding configuration - annotationProcessorPaths and the Lombok dependency inside path tag in the maven compiler plugin - still the same error
    – devvv
    Commented Jun 16, 2023 at 11:05
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Commented Jun 16, 2023 at 19:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.