Hi,
i want to develope an maven plugin for automatic code generating.
I have an Annotation that can be set for methods its Retention is RUNTIME.
Whenever this annotation is set for a method i want to generate an constant value with the methodName in another class.
When i run the generator standalone everything works fine.
But when i call the generator from my mojo the annotation cant be processed. For debugging i have thrown an exception with the count of annotations for the method as Exceptionmsg. It was 0. Executing the same code standalone results in an Exception with message 1.
So why cant the annotation be processed by the generator when running as maven plugin?
i want to develope an maven plugin for automatic code generating.
I have an Annotation that can be set for methods its Retention is RUNTIME.
Whenever this annotation is set for a method i want to generate an constant value with the methodName in another class.
When i run the generator standalone everything works fine.
But when i call the generator from my mojo the annotation cant be processed. For debugging i have thrown an exception with the count of annotations for the method as Exceptionmsg. It was 0. Executing the same code standalone results in an Exception with message 1.
So why cant the annotation be processed by the generator when running as maven plugin?