I am interested in writing an annotation processor for the maven-processor-plugin. I am relatively new to Maven.
Where in the project path should the processor Java source code go (e.g.: src/main/java/...) so that it gets compiled appropriately, but does not end up as part of my artifact JAR file?
The easiest way is to keep your annotation processor in a separate project that you include as dependency.
If that doesn't work for you, use this config
Compiler Plugin:
Processor Plugin:
(Note that this must be executed between the two compile runs, so it is essential that you place this code in the pom.xml after the above maven-compiler-plugin configuration)
Jar Plugin: