IntelliJ IDEA cannot see Lombok generated code [duplicate]
You need to enable the annotation preprocessor. See documentation here. Additionally you should install the lombok plugin if not done already
You need to enable the annotation preprocessor. See documentation here. Additionally you should install the lombok plugin if not done already
Just in case somebody ends up looking for an answer here. With lombok plugin starting with v0.8.6 it is possible.
Using lombok 1.18.16 did not work for me. I added the argument below in the build process VM options in -Djps.track.ap.dependencies=false Setting:- Build, Execution, Deployment -> Compiler -> Shared build process VM options and it worked https://github.com/rzwitserloot/lombok/issues/2592
The reason why it does not work is because Maven only uses the MapStruct processor and not the Lombok one. The annotationProcessorPaths tells maven which processors it should use. The delombok does nothing as you are ending up with 2 files per class and I think that the maven compiler does not see them. You … Read more