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
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:
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
1.5
true
default-compile
true
path/to/processor
after-processing
process-classes
compile
false
path/to/processor
Processor Plugin:
org.bsc.maven
maven-processor-plugin
process
process
compile
com.yourcompany.YourProcessor
(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:
org.apache.maven.plugins
maven-jar-plugin
2.3.1
path/to/processor
true