maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: API for annotation scanning in a mojo?
Date Wed, 13 Jul 2016 22:06:37 GMT
Thanks Robert. Just to be clear, because I want to know if your link still
applies, I don't want to scan for Maven annotations, but annotations in the
reactor's current project. Can you confirm I can still use this for that
purpose?

Cheers,
Paul

On Wed, Jul 13, 2016 at 4:58 PM, Robert Scholte <rfscholte@apache.org>
wrote:

> 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:
>
> https://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/xref/org/apache/maven/tools/plugin/extractor/annotations/scanner/DefaultMojoAnnotationsScanner.html
>
> Hope this helps,
> Robert
>
>
> On Wed, 13 Jul 2016 23:13:41 +0200, Paul Benedict <pbenedict@apache.org>
> wrote:
>
> 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] https://maven.apache.org/ref/3.3.9/index.html
>>
>> Cheers,
>> Paul
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message