Lombok is not generating getter and setter

前端 未结 20 1897
走了就别回头了
走了就别回头了 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:25

    What I had to do was to install lombok in the eclipse installation directory.

    Download the lombok.jar from here and then install it using the following command:

    java -jar lombok.jar
    

    After that make sure that the lombok.jar is added in your build path. But make sure you don't add it twice by adding once through maven or gradle and once again in eclipse path.

    After that clean and build the project again and see all the errors go away.

提交回复
热议问题