Tutorials / Tech blog / Geek Zone

Latest Posts

Friday, December 7, 2018

Lombok :: Not generating getters and setters in STS

If you use Spring Tool Suite IDE (STS - by Pivotal) and have tried exploring Lombok, you might have experienced that it doesn't work out of the box (i.e. just adding it to Maven project's POM file).

Following are steps which will help configure Lombok for our IDE.


  • Include Lombok dependency in the POM of the relevant Maven project
  • Exit or Shutdown STS
  • Locate lombok jar in ~/.m2/repository/org/projectlombok/lombok/1.xy.z/lombok-1.xy.z
  • Execute the following command from CLI
java -jar lombok-1.x.y.jar


  • Specify the STS executable location

  • Start STS

Hey presto job done !!



No comments:

Post a Comment