For me in Eclipse I had to enable it in project settings under Java Compiler -> Annotation Processing -> Enable annotation processing:
Eclipse properties