- All Implemented Interfaces:
- Processor
@SupportedAnnotationTypes(value="org.antlr.v4.test.runtime.CommentHasStringValue")
@SupportedSourceVersion(value=RELEASE_7)
public class CommentHasStringValueProcessor
extends AbstractProcessor
I think I figured out how to use annotation processors in maven. It's
more or less automatic and you don't even need to tell maven, with one minor
exception. The idea is to create a project for the annotation and another
for the annotation processor. Then, a project that uses the annotation
can simply set up the dependency on the other projects. You have to turn
off processing, -proc:none on the processor project itself but other than
that, java 6+ more or less tries to apply any processors it finds during
compilation. maven just works.
Also you need a META-INF/services/javax.annotation.processing.Processor file
with "org.antlr.v4.test.runtime.CommentHasStringValueProcessor" in it.