Stephan van Hulst wrote:Tim, you'd still need to install Lombok into Eclipse separately, because it needs a separate compiler/code analyzer that knows to convert Lombok magic to plain Java.
Tim Holloway wrote:1. Download the Lombok jar manually and execute the lombok.jar file. That will cause it to search for your installed copy(ies?) of Eclipse and install itself (probably copy the JAR to Eclipse's plugins directory).
2. To use when building via command-line tools such as Maven, you need to include a dependency for Lombok in the POM - AND - a repository element indicating Lombok's own private Maven repository. You may be able to define the Lombok rep in your master Maven configuration file, but without checking I won't guarantee it.
Again, I don't know if Lombok works with current releases of Eclipse. If still no success, uninstall Lombok per the directions. Check your eclipse/plugins folder to make sure no files with "lombok" in there name are present and re-install.
Rob Spoor wrote:
What's wrong with https://mvnrepository.com/artifact/org.projectlombok/lombok?
I've used it with either Eclipse 4.6.3 or 4.15, I can't remember which one. I think I used https://www.baeldung.com/lombok-ide, because it looks familiar. Indeed - no official Lombok site...
Rob Spoor wrote:The current version is either 4.19 or 4.20. If I recall correctly there are either 2 or 4 releases a year, so 4.15 isn't that old.