When a method or variable is annotated with Lombok annotation, the maven plugin will complain by processing the source generation for JPA.
I get this kind of failure
This solution worked for me.
Add lombok.launch.AnnotationProcessorHider$AnnotationProcessor in your apt-maven-plugin configuration.
com.mysema.maven
apt-maven-plugin
process
target/generated-sources/java
com.querydsl.apt.jpa.JPAAnnotationProcessor,lombok.launch.AnnotationProcessorHider$AnnotationProcessor
It seems also to be working the same way with gradle: See https://github.com/ewerk/gradle-plugins/issues/59#issuecomment-247047011