I just tried to send a Maven-based project to another computer and HORROR, red markers everywhere!!
However, mvn clean install is building just fine.
just adding the dependency of Lombok is not enough. You'll have to install the plugin of Lombok too.
You can get your Lombok jar file in by navigating through (Only if you have added the dependency in any of the POM.)
m2\repository\org\projectlombok\lombok\1.18.12\lombok-1.18.12
Also, if Lombok could not find the IDE, manually specify the .exe of your IDE and click install.
Restart your IDE.
That's it.
If you face any problem,
Below is a beautiful and short video about how to install the plugin of Lombok.
Just to save your time, you can start from 1:40.
https://www.youtube.com/watch?v=5K6NNX-GGDI
If it still doesn't work,
Verify that lombok.jar is there in your sts.ini file (sts config file, present in sts folder.)
-javaagent:lombok.jar
Do an Alt+F5. This will update your maven.
Close your IDE and again start it.