From users-return-132645-apmail-maven-users-archive=maven.apache.org@maven.apache.org Tue Jun 4 17:41:46 2013 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 44F7210E0A for ; Tue, 4 Jun 2013 17:41:46 +0000 (UTC) Received: (qmail 94853 invoked by uid 500); 4 Jun 2013 17:41:42 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 94757 invoked by uid 500); 4 Jun 2013 17:41:42 -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 94742 invoked by uid 99); 4 Jun 2013 17:41:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 17:41:40 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS,TVD_FW_GRAPHIC_NAME_MID X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [12.161.118.91] (HELO mx2.belden.com) (12.161.118.91) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 17:41:33 +0000 X-AuditID: 0a01015b-b7fa36d000000ee1-18-51ae26b5e062 Received: from bdcnotes1.beldencdt.com ( [10.1.1.71]) by mx2.belden.com (Service Ready) with SMTP id C2.74.03809.5B62EA15; Tue, 4 Jun 2013 13:41:09 -0400 (EDT) In-Reply-To: <1370366185321-5758242.post@n5.nabble.com> References: <1370356211447-5758214.post@n5.nabble.com> <1370358083485-5758217.post@n5.nabble.com> <1370366185321-5758242.post@n5.nabble.com> Subject: Re: Call a custom plugin from another project X-KeepSent: 6407B9A5:F7F3B094-85257B80:0060DA01; type=4; name=$KeepSent To: "Maven Users List" X-Mailer: Lotus Notes Release 8.5.3FP2 SHF99 September 04, 2012 Message-ID: From: Alejandro.Endo@miranda.com Date: Tue, 4 Jun 2013 13:41:10 -0400 X-MIMETrack: Serialize by Router on BDCNotes1/BeldenCDT(Release 8.5.3|September 15, 2011) at 06/04/2013 01:41:14 PM MIME-Version: 1.0 Content-type: multipart/related; Boundary="0__=0ABBF113DFF35C918f9e8a93df938690918c0ABBF113DFF35C91" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJKsWRmVeSWpSXmKPExsXCxcjorrtVbV2gQXsXt8WjrdcZHRg92p8K BTBGNTDaJCWWlAVnpufp29kk5uXllySWpCqkpBYn2yo5peakpOYpuGQWJ+ckZuamFul6Bvvr WliYWiopZKbYKhkpKRTkJCan5qbmldgqJRYUpOalKNlxKWAAG6CyzDyF1Lzk/JTMvHRbJZg5 uoZKCXNYM1b+NSi4Z1PR9XM5WwPjEpMuRg4OCQETiTc/2boYOYFMMYkL99aD2UICixglWk/X g9icAuYSEw5+Y+xi5AKK32aS2LN2ERNIQljATKL7/kx2iGZPia/3TjOD2CIC+hLLDt5ngYjb S3x/9AHM5hUIlVi57wNYDZuAgsTcK5vAlrEIqEgsan/IBnFPqcSlGY4Q5YISJ2c+AWtlFkiX uLNyNvsERv5ZSFKzkKQg7GyJlmvrmSFsLYnN25pYIWxtiSfvLgDZHEC2psTuFbkQprTE8n8c qCpAbD2JiccOM0GUGEts3J8JEbaSmLjxH1SJosS0RQ2MCxh5VjHy5VYY6SWBI1EvOT93EyMk LUTvYDz2Q/UQowAHoxIPbw33ukAh1sSy4srcQ4wqQAMebVh9gVGKJS8/L1VJhFf52tpAId6U xMqq1KL8+KLSnNTiQ4yVwKCZyCzFnZwPTGV5JfHGBgbU5SiJ8y5YOj9QSCAdmBqzU1MLUotg djNxcB5ilODgkhIpBia31KLE0pKMeFAaji8GJmKpBsaOk9+Cpi/WDH26yeRX6oKQJs/kO5Xa nheuLHDxn+ty25+33VLV5Gpgr/3Ebfrfi14WMk1me9y6PMTpxB8FLYmC/vMLFL/MT/efc3NK q3bfUk/3ReErDZbNfRL9QenkA49zS+56mpb6umXVL56yLWuJYvpGjnWPth5d55bDp1jz+2DD zbb6l2pKLMUZiYZazEXFiQBiONMejAMAAA== X-Virus-Checked: Checked by ClamAV on apache.org --0__=0ABBF113DFF35C918f9e8a93df938690918c0ABBF113DFF35C91 Content-type: multipart/alternative; Boundary="1__=0ABBF113DFF35C918f9e8a93df938690918c0ABBF113DFF35C91" --1__=0ABBF113DFF35C918f9e8a93df938690918c0ABBF113DFF35C91 Content-type: text/plain; charset=US-ASCII content-transfer-encoding: quoted-printable IIUC, you are trying to bind a plugin execution to a phase? Check this link http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Configuri= ng_Build_Plugins Basically, you need an "" tag with the configuration for the plugin and a that the plugin is bound to so if you bind it to "package" for example, your plugin will be executed when you run "mvn package" Alejandro Endo | Software Designer/Concepteur de logiciels From: alesky To: users@maven.apache.org, Date: 04/06/2013 01:17 PM Subject: Re: Call a custom plugin from another project ok Stephen thanks specifying an execution to the plugin it works but i would like to injects an execution in the packaging for the specified plugin project in the way that i can use the plugin in this way, and don't have to force 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, 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, 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-project-t= p5758214p5758242.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You. --1__=0ABBF113DFF35C918f9e8a93df938690918c0ABBF113DFF35C91 Content-type: text/html; charset=US-ASCII Content-Disposition: inline content-transfer-encoding: quoted-printable

IIUC, you are trying to bind a plugi= n execution to a phase?

Check this link

http://mav= en.apache.org/guides/mini/guide-configuring-plugins.html#Configuring_Build_P= lugins

Basically, you need an "<execut= ion>" tag with the configuration for the plugin and a <phase>= that the plugin is bound to

so if you bind it to "package"= ; for example, your plugin will be executed when you run "mvn package&q= uot;

Alejandro Endo | Software Designer/Concepteur de logiciels


3D"Inactivealesky ---= 04/06/2013 01:17:23 PM---ok Stephen thanks  specifying an execution to= the plugin it works

From: alesky <alessandro.dottavio@gmail.com>
To: users@maven.apache.org,
Date: 04/06/2013 01:17 PM
Subject: Re: Call a custom plugin from another projec= t





ok Stephen thanks

specifying an execution to the plugin it works



but i would like to injects an execution in the packaging for the specified<= br> plugin project
in the way that i can use the plugin in this way, and don't have to force 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,
but from my understand this annotation is complete different from what i
want to do

@execute goal=3D"<goal>"
This will execute the given goal before execution of this one. The goal name=
is specified using the prefix:goal notation.
@execute phase=3D"<phase>"
This will fork an alternate build lifecycle up to the specified phase before=
continuing to execute the current one. If no lifecycle is specified, Maven will use the lifecycle of the current build.
@execute lifecycle=3D"<lifecycle>" phase=3D"<phase&g= t;"
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-f= rom-another-project-tp5758214p5758242.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.

--1__=0ABBF113DFF35C918f9e8a93df938690918c0ABBF113DFF35C91-- --0__=0ABBF113DFF35C918f9e8a93df938690918c0ABBF113DFF35C91--