maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <>
Subject Re: API for annotation scanning in a mojo?
Date Wed, 13 Jul 2016 21:58:36 GMT
Hi Paul,

In general there are descriptors generated at compile-time based on either  
doclettags (old-style) or annotations (new-style).
At runtime it is a matter of reading the descriptor and build up the Maven  
runtime, which should be much faster then runtime annotation scanning.

Here's an example of the default implementation of the MojoScanner:

Hope this helps,

On Wed, 13 Jul 2016 23:13:41 +0200, Paul Benedict <>  

> Is there any existing API in any of these projects [1] for scanning
> annotations? I am writing a Mojo and want to scan either the project's
> source files or binary files -- haven't decided. The answer will depend  
> on
> what APIs are available to me.
> [1]
> Cheers,
> Paul

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message