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 7C04D10E09 for ; Wed, 5 Jun 2013 10:33:24 +0000 (UTC) Received: (qmail 50269 invoked by uid 500); 5 Jun 2013 10:33:21 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 50108 invoked by uid 500); 5 Jun 2013 10:33:21 -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 49892 invoked by uid 99); 5 Jun 2013 10:33:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 10:33:20 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.116.27 as permitted sender) Received: from [65.55.116.27] (HELO blu0-omc1-s16.blu0.hotmail.com) (65.55.116.27) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 10:33:14 +0000 Received: from BLU172-W41 ([65.55.116.9]) by blu0-omc1-s16.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 5 Jun 2013 03:32:53 -0700 X-TMN: [f7Oo0MsLHSQbUssiXoNLJjA2oBfKcPwUbqP4duAnJ/k=] X-Originating-Email: [mgainty@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_58f5fafd-eb50-4eb7-b885-b96815083df9_" From: Martin Gainty To: "users@maven.apache.org" Subject: RE: Call a custom plugin from another project Date: Wed, 5 Jun 2013 06:32:52 -0400 Importance: Normal In-Reply-To: References: <1370356211447-5758214.post@n5.nabble.com>,,<1370358083485-5758217.post@n5.nabble.com>,,,<1370366185321-5758242.post@n5.nabble.com>, MIME-Version: 1.0 X-OriginalArrivalTime: 05 Jun 2013 10:32:53.0876 (UTC) FILETIME=[0964E340:01CE61D8] X-Virus-Checked: Checked by ClamAV on apache.org --_58f5fafd-eb50-4eb7-b885-b96815083df9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Take a look at this tutorial to get you started binding your plugin to user= -selected phase =20 http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-plugin= s-lifecycle.html Bon Chance=2C Martin=20 ______________________________________________=20 Note de d=E9ni et de confidentialit=E9 Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes= pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sat= isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e= ou la copie de ceci est interdite. Ce message sert =E0 l'information seule= ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d= onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . =20 > Date: Tue=2C 4 Jun 2013 19:57:55 +0200 > Subject: Re: Call a custom plugin from another project > From: ml@batmat.net > To: users@maven.apache.org >=20 > If I understand correctly=2C you want to be able to execute your plugin > without having to declare it. If so then your are on the right path since > the only way to do that is to create a custom lifecycle. >=20 > Hope this helps. > Cheers >=20 > -- Baptiste > Le 4 juin 2013 19:17=2C "alesky" a =E9cri= t : >=20 > > ok Stephen thanks > > > > specifying an execution to the plugin it works > > > > > > > > but i would like to injects an execution in the packaging for the speci= fied > > plugin project > > in the way that i can use the plugin in this way=2C and don't have to f= orce > > the user to specific the execution > > > > > > > > but i didn't found any documentation on-line or in the reference guide > > regarding this point > > or at list I'm not able to find a correct on-line document to do it > > > > what i i found is that in the plugin annotation there is the @execute > > annotation=2C > > but from my understand this annotation is complete different from what = i > > want to do > > > > @execute goal=3D"" > > This will execute the given goal before execution of this one. The goal > > name > > is specified using the prefix:goal notation. > > @execute phase=3D"" > > This will fork an alternate build lifecycle up to the specified phase > > before > > continuing to execute the current one. If no lifecycle is specified=2C = Maven > > will use the lifecycle of the current build. > > @execute lifecycle=3D"" phase=3D"" > > This will execute the given alternate lifecycle. A custom lifecycle can= be > > defined in META-INF/maven/lifecycles.xml. > > > > > > > > > > > > > > > > > > -- > > View this message in context: > > http://maven.40175.n5.nabble.com/Call-a-custom-plugin-from-another-proj= ect-tp5758214p5758242.html > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe=2C e-mail: users-unsubscribe@maven.apache.org > > For additional commands=2C e-mail: users-help@maven.apache.org > > > > = --_58f5fafd-eb50-4eb7-b885-b96815083df9_--