Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 630C010334 for ; Fri, 20 Sep 2013 19:15:40 +0000 (UTC) Received: (qmail 49717 invoked by uid 500); 20 Sep 2013 19:15:35 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 49666 invoked by uid 500); 20 Sep 2013 19:15:32 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 49654 invoked by uid 99); 20 Sep 2013 19:15:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 19:15:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mcculls@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 19:15:24 +0000 Received: by mail-we0-f169.google.com with SMTP id t60so936273wes.14 for ; Fri, 20 Sep 2013 12:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=13fKn8AKxFuAIodYHbaCDbsOQOQAe4/q0yDATHDegfg=; b=CUOAAmKVg3z4DN1svlHFSdXvTOcS2xclts0NffP2kCuS5cNiS7I1hGwLvCiFULdXXQ xKNe6W2Uz2YYJDmGkk8a0lMG+Ss04jOL9iXgNjm5vOCEjXyyXwBRXkesPbOGvIfC2JTn oV9TfJuv9nG7oT73RoBi20tJIAv4ptRqMON0qSX0RTjkR0uVsuzOlww4r5sZI7OdNZKr XoVdyr/N0aTX5Su3YJifkzNM0Ld9ruj6hPhCS9Y17JtlxErO7AVGMnv1L2XuO8HLeL6u a0WQtMZDu/+iKTfU2+rKjTIYZ8h7hPeZFSBrMyMwpnCbLff4BS/d6tqWmybS6Gf/5YGn xLDw== X-Received: by 10.180.93.166 with SMTP id cv6mr3927409wib.37.1379704504477; Fri, 20 Sep 2013 12:15:04 -0700 (PDT) Received: from tulloch.home (host86-151-147-76.range86-151.btcentralplus.com. [86.151.147.76]) by mx.google.com with ESMTPSA id dx7sm7085416wib.8.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 12:15:03 -0700 (PDT) Subject: Re: Stupid Question about plugin annotations Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=iso-8859-1 From: Stuart McCulloch In-Reply-To: Date: Fri, 20 Sep 2013 20:15:01 +0100 Cc: robert.patrick@oracle.com, olamy@apache.org Content-Transfer-Encoding: quoted-printable Message-Id: <773EB416-C1F1-4D8C-BCE3-97F25CC131C9@gmail.com> References: ,<30b1b3c6-6ed7-4645-8feb-82f3b400fa63@default>,,<70a1e125-8066-4bcb-b198-7dc889f53132@default>,,, To: Maven Developers List X-Mailer: Apple Mail (2.1085) X-Virus-Checked: Checked by ClamAV on apache.org Also, wrt. the original question... I believe when using the old javadoc annotations you had to add an = "expression" attribute to allow a parameter to be overridden from the = command-line: "NOTE: If neither default-value nor expression are specified, = the parameter can only be configured from the POM." =46rom = http://maven.apache.org/developers/mojo-api-specification.html In the Java5 annotations the "expression" attribute was renamed to = "property": https://jira.codehaus.org/browse/MPLUGIN-196 So AFAICT the behaviour is the same (though I haven't dug any deeper or = tested this hypothesis) - so I think it's more a matter of improving the = docs than changing code. On 20 Sep 2013, at 20:00, Stuart McCulloch wrote: > IIRC those Java5 annotations are only used by the maven-plugin-plugin = to generate META-INF/maven/plugin.xml and are not used by the core Maven = runtime, in which case a retention policy of CLASS is ok: >=20 > http://svn.apache.org/viewvc?view=3Drevision&revision=3D1338003 >=20 > The main benefit of using them is that if you extend a Maven plugin = then the maven-plugin-plugin can see the Java5 annotations retained in = the class file, whereas javadoc annotations are only in the source. >=20 > See http://jira.codehaus.org/browse/MPLUGIN-56 for the original = use-case. >=20 > On 20 Sep 2013, at 19:34, Martin Gainty wrote: >=20 >> looks like we need to hire you to check our code..(provided you work = for free) >>=20 >> package org.apache.maven.plugins.annotations; >>=20 >> import java.lang.annotation.RetentionPolicy; >>=20 >> @Documented >> @Retention( RetentionPolicy.CLASS ) >> @Target( { ElementType.FIELD } ) >> @Inherited >> public @interface Parameter >>=20 >> RetentionPolicy parameters: >> CLASS >> Annotations are to be recorded in the class file by the compiler >> but need NOT be retained by the VM at run time. >>=20 >>=20 >>=20 >> RUNTIME >> Annotations are to be recorded in the class file by the compiler and >> RETAINED by the VM at run time, so they may be read reflectively. >>=20 >>=20 >>=20 >> SOURCE >> Annotations are to be discarded by the compiler.=20 >> https://jira.codehaus.org/browse/MNG-5520 >>=20 >> thanks Robert! >> Martin=20 >> ______________________________________________=20 >>=20 >>=20 >>=20 >>> Date: Fri, 20 Sep 2013 00:42:59 -0700 >>> From: robert.patrick@oracle.com >>> To: dev@maven.apache.org >>> Subject: RE: Stupid Question about plugin annotations >>>=20 >>> Thanks. http://jira.codehaus.org/browse/MNG-5518 submitted with = test case. >>>=20 >>>=20 >>> -- >>> Robert Patrick >>> VP, FMW Architects Team: The A-Team=09 >>> Oracle Corporation Office: +1.940.725.0011 >>> 1148 Triple Crown Court Fax: +1.940.725.0012 >>> Bartonville, TX 76226, USA Mobile: +1.469.556.9450 >>>=20 >>> A-Team Chronicles Blog: http://www.ateam-oracle.com/ =20 >>>=20 >>> Professional Oracle WebLogic Server >>> by Robert Patrick, Gregory Nyberg, and Philip Aston >>> with Josh Bregman and Paul Done >>> Book Home Page: http://www.wrox.com/ >>> Kindle Version: http://www.amazon.com/ >>>=20 >>>=20 >>> -----Original Message----- >>> From: Anders Hammar [mailto:anders@hammar.net]=20 >>> Sent: Friday, September 20, 2013 2:20 AM >>> To: Maven Developers List >>> Subject: Re: Stupid Question about plugin annotations >>>=20 >>> Actually, he needs to sign up on Codehaus Xircles. >>>=20 >>> /Anders >>>=20 >>>=20 >>> On Fri, Sep 20, 2013 at 9:06 AM, Lennart J=F6relid >>> wrote: >>>=20 >>>> You can sign up for a JIRA account on the JIRA welcome page. >>>>=20 >>>> You can find the respective JIRAs on >>>> http://maven.apache.org/issue-tracking.html >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org >>> For additional commands, e-mail: dev-help@maven.apache.org >>>=20 >> =20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org