Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3700EE0EB for ; Thu, 3 Jan 2013 17:12:05 +0000 (UTC) Received: (qmail 23119 invoked by uid 500); 3 Jan 2013 17:12:03 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 23036 invoked by uid 500); 3 Jan 2013 17:12:03 -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 23028 invoked by uid 99); 3 Jan 2013 17:12:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 17:12:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anders.g.hammar@gmail.com designates 209.85.215.53 as permitted sender) Received: from [209.85.215.53] (HELO mail-la0-f53.google.com) (209.85.215.53) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 17:11:55 +0000 Received: by mail-la0-f53.google.com with SMTP id fn20so8337804lab.12 for ; Thu, 03 Jan 2013 09:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=9JfQ9o+nL2LZwrZ3UlJ/ayh1DVhJ4yVPkH0YC/rjf6Y=; b=rFbIOWSVoVXOuoiyHjITOsDEhm7QrB2nkbRD1+/w4+FH0/LW6mN4xB7dOm/ga+032F 2opNHi7/OGfFe8e5kX/9a5w+JFA10k4Ul+xCCF/KqJgremVorc5KtUF2Fie+m26PsfV4 JFRbROrCnadUxI3wVCYU2Kbsbfl25a8QIIytoU4QCbBLMgaAMNBNV3RU2kusjc+XJRRK 0OYBhDvwT7A9ldj2ACImMYCo5MWdCtnkFjf0J0jFpGH35K4sop1MnRRpo0qP0F6lIccR tZMin3WgXiyMKkRLGhfmrfRwOHMRQcuDzvTuMUHTVhtb2vr2xi9RPCW7ZANXZJl7TgeH zIbg== MIME-Version: 1.0 Received: by 10.112.8.129 with SMTP id r1mr20067618lba.127.1357233094537; Thu, 03 Jan 2013 09:11:34 -0800 (PST) Sender: anders.g.hammar@gmail.com Received: by 10.114.69.18 with HTTP; Thu, 3 Jan 2013 09:11:34 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Jan 2013 18:11:34 +0100 X-Google-Sender-Auth: Fzu_Ohsm9KoRJ-M3TFypIt_5oLY Message-ID: Subject: Re: HelpMojo not being compiled when using annotations From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=e0cb4efe330c7a32a104d265748a X-Virus-Checked: Checked by ClamAV on apache.org --e0cb4efe330c7a32a104d265748a Content-Type: text/plain; charset=ISO-8859-1 Not sure I follow, but this works just fine for the core Apache Maven plugins (that use annotations) so you must be doing something wrong. Please have a look at the source for any of those plugins for reference. I assume you've tried the latest version of the plugin? If you still think it's a problem, file a ticket with a small project that reproduces the issue. /Anders On Thu, Jan 3, 2013 at 6:00 PM, Dan Godfrey wrote: > Hi, > > I'm having some issues getting the HelpMojo generated when using the > maven-plugin-plugin. I've updated to use the java annotations instead of > the javadoc versions. > > The issue as far as I can see is that, the helpmojo goal needs to be > executed in the process-classes phase, otherwise there won't necessarily be > any classes in target\classes from which to read the annotations. However, > as the process-classes phase is after the compile phase, the source > generated for HelpMojo in target/generated-sources/plugin is never compiled > into target/classes, and hence never included in the jar. It's a bit of a > chicken & egg problem. > > If it is executed in the generate-sources phases, (the default I believe) > then the build fails after a clean as there are no classes in > target/classes with any annotations, well no classes at all. > > Thanks, > Dan. > --e0cb4efe330c7a32a104d265748a--