After viewing the lombok project, I found a solution.
When specifying JPAMetaModelEntityProcessor as the javac annotation processor, the lombok processor seems remote.
To fix this, we can simply add the Lombok comment handler to the maven-compiler-plugin:
[...] <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArguments> <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor,lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor> </compilerArguments> </configuration> </plugin> [...]
Pierrick
source share