Lombok is not generating getter and setter

前端 未结 20 1851
走了就别回头了
走了就别回头了 2020-11-29 19:10

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.

20条回答
  •  既然无缘
    2020-11-29 19:29

    • If you use STS. You must have Lombok installed in your Eclipse by running lombok-xyz.jar

    • Please Try the Following the Steps:

      1. Include pom in Maven .
      2. Exit/Shutdown STS
      3. Find lombok Jar in ~/.m2/repository/org/projectlombok/lombok/version.x
      4. From Command Prompt/Shell java -jar lombok-1.x.y.jar

      5. 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.

提交回复
热议问题