CodexBloom - Programming Q&A Platform

IntelliJ IDEA not recognizing Lombok annotations in Spring Boot project

👀 Views: 19 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-01
intellij lombok spring-boot Java

I just started working with Can someone help me understand I can't seem to get I'm working on a Spring Boot application using Lombok for boilerplate code reduction, but IntelliJ IDEA (version 2023.1) isn't recognizing the Lombok annotations... This is causing the IDE to unexpected result to generate getters and setters, leading to multiple compilation errors. I've added the Lombok dependency in my `pom.xml`: ```xml <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.24</version> <scope>provided</scope> </dependency> ``` I've also made sure to enable annotation processing in IntelliJ by going to `File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors` and checking the "Enable annotation processing" box. Despite this, I still see errors like: `want to resolve symbol 'Getter'` `want to resolve symbol 'Setter'` I've tried invalidating caches and restarting the IDE, but that didn't help either. I even looked into the IDE logs to check for any issues related to Lombok, but nothing stands out. Is there something I'm missing in the configuration, or is there a specific plugin I need to ensure that IntelliJ works seamlessly with Lombok? I'm working on a API that needs to handle this. What's the best practice here? This is my first time working with Java LTS. Is there a simpler solution I'm overlooking? I'm using Java 3.11 in this project. What would be the recommended way to handle this? I recently upgraded to Java 3.10.