Note that Lombok requires Java 6, but the plugin requires Java 7, or later, to execute at build time.


Add the following to the pom.xml to activate the delombok goal:


Place the java source code with lombok annotations in src/main/lombok (instead of src/main/java). During the build process, the src/main/lombok code will be delomboked and the generated java code ends up in target/generated-sources/delombok. The delomboked code is compiled and analysed together with the src/main/java code.