I am using eclipse Kepler and the compiler is configured to use Java 7. I have an annotation handler compatible with JSR269 in my class path (in the maven container).
What is the easiest way to run this annotation handler?
In fact, I expected that compiling Eclipse would automatically run this annotation handler during build, as it is compatible with JSR 269, but it is not. Why not - is it for performance reasons?
Note: building maven from the command line works fine.
After some research, it turned out that this can be configured in the project properties (Java Compiler - Annotation Processing - Factory Path). The question here is that of course I want to use the annotation processor .jar file, which is already in the class path (in the Maven container). How can I turn to him? I have not found a way to do this.
The best I came up with is to use the M2_REPO
variable, and then manually add the processor path as follows:
M2_REPO/com/gwtplatform/gwtp-processors/1.0.1/gwtp-processors-1.0.1.jar
Obviously, the problem is that the processor is now listed in 2 places: in the maven pom file and in the eclipse project. How to avoid this?
source share