Issue
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.
Quickly, I noticed that Lombok is not generating getters and setters for my classes, although the @Getter
and @Setter
are being correctly recognised by Eclipse.
Both computers use the same Maven version (3.0.4) but different JDKs (1.6_23 and 1.6_33). They both use Eclipse Indigo 32 bit. Do you have an idea about how to solve the problem?
Solution
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.
Answered By - Heetola
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.