How do I run a custom Annotation Processor in IntelliJ

623 Views Asked by At

I have an annotation check.java & annotation processor CheckProcessor.java that I've written and exported to a jar file check.jar.

I also have Test.java which is a small class to test the annotation. Running javac -cp check.jar Test.java works on the command line.

I can't get it to work in IntelliJ. I've added check.jar as an external library. The @check annotation can be used without compilation errors, but the annotation processor is never run.

I have enabled annotation processing under Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors, and provided a custom processor path straight to the jar file

0

There are 0 best solutions below