Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4C142200B45 for ; Fri, 15 Jul 2016 09:13:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4AA6B160A6C; Fri, 15 Jul 2016 07:13:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 97AC8160A61 for ; Fri, 15 Jul 2016 09:13:31 +0200 (CEST) Received: (qmail 53620 invoked by uid 500); 15 Jul 2016 07:13:30 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 53609 invoked by uid 99); 15 Jul 2016 07:13:30 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2016 07:13:30 +0000 Received: from desktop-2khsk44.dynamic.ziggo.nl (5248749D.cm-4-1b.dynamic.ziggo.nl [82.72.116.157]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B10741A01BB for ; Fri, 15 Jul 2016 07:13:29 +0000 (UTC) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Maven Users List" Subject: Re: API for annotation scanning in a mojo? References: Date: Fri, 15 Jul 2016 09:13:32 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Robert Scholte" Organization: Apache Software Foundation Message-ID: In-Reply-To: User-Agent: Opera Mail/12.17 (Win64) archived-at: Fri, 15 Jul 2016 07:13:32 -0000 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 > 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 > 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 >> 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 >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org