-
Hi, I managed to find the class where this takes place: AbstractAptConfiguratorDelegate. configureProject(IProgressMonitor monitor) I can see that the class AnnotationProcessorConfiguration contains the project with my annotation processor.
So far so good. I want this to be searched for the processor but I don't see that happen since it is not a jar file.
This will check that I have a processor but will not find my classes since resolvedJarArtifacts only contains
So from here resolvedJarArtifacts will only contain jar dependencies in the list showed in the beginning.
I would really appreciate your support and insights on this matter. Looking forward to discuss it. //mike |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
If it could be loaded from a jar, then it could also be loaded from
|
Beta Was this translation helpful? Give feedback.
-
When I do Maven --> Update I see that m2e-apt is triggered. A Project -- > Clean from within Eclipse does not trigger m2e-apt. I For Maven --> Update I can see the following options: Two options are:
So if the source of annotation processor classes changed these selections will mean a new version in target/classes. Right? |
Beta Was this translation helpful? Give feedback.
-
Long story short, JDT APT doesn't support Annotation Processors from workspace projects. They must come from jar files. Your best bet is to make changes to your annotation processor in another Eclipse instance, and have the processor project closed in the workspace you want to consume it, so that it's referenced as a jar file. |
Beta Was this translation helpful? Give feedback.
Long story short, JDT APT doesn't support Annotation Processors from workspace projects. They must come from jar files.
It's a design decision as explained in https://bugs.eclipse.org/bugs/show_bug.cgi?id=259230#c1.
Your best bet is to make changes to your annotation processor in another Eclipse instance, and have the processor project closed in the workspace you want to consume it, so that it's referenced as a jar file.