Re: API for annotation scanning in a mojo?

2016-07-15 Thread Christopher
maven-compiler-plugin/compile-mojo.html#annotationProcessors > > > > > > Chris > > > > > > Von: Paul Benedict > > Gesendet: Mittwoch, 13. Juli 2016 23:13:41 > > An: Apache Maven Users > > Betreff: API for annotatio

Re: API for annotation scanning in a mojo?

2016-07-15 Thread Matt Benson
; Von: Paul Benedict > Gesendet: Mittwoch, 13. Juli 2016 23:13:41 > An: Apache Maven Users > Betreff: API for annotation scanning in a mojo? > > 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 proj

AW: API for annotation scanning in a mojo?

2016-07-15 Thread Christofer Dutz
ths> https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#annotationProcessors Chris Von: Paul Benedict Gesendet: Mittwoch, 13. Juli 2016 23:13:41 An: Apache Maven Users Betreff: API for annotation scanning in a mojo? Is there any existing

Re: API for annotation scanning in a mojo?

2016-07-15 Thread Robert Scholte
Hi Paul, AFAIK Maven doesn't have it like that. However, Guice is bundled with the latest versions of Maven, that probably an option to investigate. Robert On Thu, 14 Jul 2016 00:06:37 +0200, Paul Benedict wrote: Thanks Robert. Just to be clear, because I want to know if your link sti

Re: API for annotation scanning in a mojo?

2016-07-13 Thread Paul Benedict
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 wr

Re: API for annotation scanning in a mojo?

2016-07-13 Thread Robert Scholte
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

API for annotation scanning in a mojo?

2016-07-13 Thread 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] https://maven.apache.org/ref/3.3.9/index.html Ch