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 E7580BFD3 for ; Wed, 18 Jan 2012 03:25:11 +0000 (UTC) Received: (qmail 28246 invoked by uid 500); 18 Jan 2012 03:25:06 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 27960 invoked by uid 500); 18 Jan 2012 03:24:48 -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 27949 invoked by uid 99); 18 Jan 2012 03:24:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 03:24:44 +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 (athena.apache.org: domain of cabin.potter@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 03:24:37 +0000 Received: by wibhj8 with SMTP id hj8so13831966wib.30 for ; Tue, 17 Jan 2012 19:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XdijRDRiLR7I8Esq1/siS+6THmeEI0Xcyi6XLBt4Xvg=; b=Ym1kMPKcLX8H5KZMwbf5hM+2Gt7vhxR0AZkWngXDrziYMKmGIEi+HXDJA7KWHTPVpV VWzazl2pWq9Y1SLtyb3ff/XIdXyVd1C2EJa5U3IqOm97R3K4FZNSI7erOeE1cqWFT7V2 OaTaPchAnQTmwY6Bj3men7ew8NGG9XPT4Do4c= MIME-Version: 1.0 Received: by 10.180.8.103 with SMTP id q7mr10643942wia.1.1326857056531; Tue, 17 Jan 2012 19:24:16 -0800 (PST) Received: by 10.216.184.135 with HTTP; Tue, 17 Jan 2012 19:24:16 -0800 (PST) Date: Tue, 17 Jan 2012 22:24:16 -0500 Message-ID: Subject: maven plugin configuration and binding execution to a phase/goal From: Jeff Trent To: users@maven.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I am stuck on two things while writing a plugin: (1) configuration, and (2) binding to the right goal/phase automatically. =A0I am using Maven 3.0.3, and trying to use the plugin for APK (android) packaged modules. (1) configuration. /** * @phase compile * @goal myGoal * @requiresDependencyResolution runtime */ public class MyMojo extends AbstractMojo { /** * @parameter expression=3D"${myGoal.aVal}" default-value=3D"defaultVal" */ String aVal; =85 } And in my pom using the plugin: my.package my-plugin-test 1.0-SNAPSHOT myConfiguredValue generate-resources myGoal ... The problem is that I always get the default value instead of the configured value. What am I missing? Am I required to provide the plugin.xml file, even for this simple case? (2) Binding to the right goal/phase. Ideally in the above example I don't want to specify for my plugin. But I can't figure out how to vary my annotations to get it to work. Can someone point out the problem, or a simple concrete example that demonstrates this case please? Thanks, CP --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org