I've written a Java annotation processor following Hannes Dorfmann's tutorial. My project uses Maven. When I try to debug it using mvnDebug
as suggested in this article, everything works except that my breakpoints are not hit in IntelliJ.
- I can run
mvnDebug clean compile
from the command line. - I can attach IntelliJ's debugger using a remote debugging target.
- My annotation processor runs normally. I've added
processingEnv.getMessager().printMessage
statements to theprocess
method and I they are logged correctly. - The only thing that is not working is the breakpoints. None of the breakpoints I set are hit.
I've tried several things: changing the classpath of the remote debugging target, different versions of maven-compiler-plugin, different options of that plugin (fork, ...), nothing helps.
What am I missing?