apt plugin does not cooperate with others well

Bug #804433 reported by Jan Prach on 2011-07-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Consider following pom.xml snipplet. There are two annotation processors. Everything is fine if querydsl is last. However if querydsl is first the other processor (jpamodelgen) won't get executed. I'm not sure why. Perhaps they get chained and querydsl returns bad return code?

btw: there's no error in processing either of the processors


Which Querydsl version are you using? Could you provide the part of the Maven log where APT execution happens?

Jan Prach (jendap) wrote :

Here's an example. It's even simpler - using compiler plugin instead of additional processor plugin. Run:

mvn clean test

Test will fail. Reordering of annotation processor dependencies helps. Move hibernate-jpamodelgen before querydsl and it will work.

Fixed in SVN trunk.

The process method needs to return false so that other processors can reclaim the annotations.

Changed in querydsl:
status: New → Fix Committed

Released in 2.2.0

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers