Lombok is not generating getter and setter
If you use STS. You must have Lombok installed in your Eclipse by running lombok-xyz.jar
Please Try the Following the Steps:
- Include pom in Maven .
- Exit/Shutdown STS
- Find lombok Jar in ~/.m2/repository/org/projectlombok/lombok/version.x
From Command Prompt/Shell
java -jar lombok-1.x.y.jar
Start STS
Thats all.
EDIT: I did this and was still showing errors, as mentioned in the comments. So I updated the project: right-click on project -> Maven -> Update Project and the errors disappeared.
When starting with a fresh eclipse installation you, in fact, need to "install" Lombok before being able to use it.
- Go where you Lombok jar is (e.g. (e.g. you can find in
~/.m2/repository/org/projectlombok/lombok/1.16.10/lombok-1.16.10.jar
), run it (Example:java -jar lombok-1.16.10.jar
). A window should appear, browse to youreclipse.exe
location. - Click on install.
- Launch Eclipse, update project configuration on all projects and voila.