I'm using Project Lombok, a (spurious) JSR 269 implementation providing useful features like the generation of getters and setters at compile time while keeping the source code clean:
@Getter @Setter private String foo;
I'd like to use another annotation processor (a JSR 269 implementation like hibernate-jpamodelgen
) to generate the JPA Canonical Metamodel (JSR 317), but no matter how hard I try (Maven, Eclipse, etc...) it does seem that there is no way to instruct it to start reading the entities from the generated code, instead that from the source (that, being not yet interpreted by Lombok, does not even compile).
Is there a way to pipe the two annotation processors in the way needed?
You might be able to configure your build to first run delombok on your source files and compile the rest later.
Disclosure: I am a lombok developer.