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 1BEC997FE for ; Mon, 11 Jun 2012 13:43:21 +0000 (UTC) Received: (qmail 81747 invoked by uid 500); 11 Jun 2012 13:43:18 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 81681 invoked by uid 500); 11 Jun 2012 13:43:18 -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 81673 invoked by uid 99); 11 Jun 2012 13:43:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 13:43:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.97.132.66] (HELO homiemail-a73.g.dreamhost.com) (208.97.132.66) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 13:43:10 +0000 Received: from homiemail-a73.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTP id 929D71F0086 for ; Mon, 11 Jun 2012 06:42:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=rapicault.net; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= rapicault.net; b=q1EeJcMwvLqQSFwn9AEqzHQF+uTDdk+AuTdSSrshPmwgVja ibQdHNz9Wdw5BUm0dFwfp924qN++hmnuzE1/KDTpyQav58rA6YK50k/g0RFVn5kS nDGkWbPD2DTGiQALg6ta48wy7wXJ5NIX6OfPxFRo7kdxxnhDHWf9n8vtkgAw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=rapicault.net; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= rapicault.net; bh=0YeVpsd/UCWpByQd3xQ16An4HJ8=; b=DwJeEtn9Px3Kqz yYKQ12R86SE765oH7LKNVeWnXbY3oMK/0UmlSMuKGtse7ohkrqC3UtBAVqrOZf/N LHQDmfoTmdR1Azp5h+xYIRfOJ8n65lywJDG38JUvDkHnwRAmMM/4i7Ve4Jh/CeQ2 2IzXbe7oiIFFLAgELU/5jJ++QBKQk= Received: from [192.168.11.220] (unknown [66.78.101.2]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: pascal@rapicault.net) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTPSA id 3719B1F0085 for ; Mon, 11 Jun 2012 06:42:48 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Hooking before and after a phase From: Pascal Rapicault In-Reply-To: Date: Mon, 11 Jun 2012 09:44:35 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "Maven Users List" X-Mailer: Apple Mail (2.1278) Thx On 2012-06-09, at 11:06 AM, Aliaksei Lahachou wrote: > Hi, >=20 > this is tricky and may involve some trial and error. Maven executes = mojos > in the same phase in the order their plugins are listed in the POM. = You can > try to define all plugins, including plugins automatically defined by = the > eclipse-plugin lifecycle, in the required order. The relative order is > maintained even when plugins are merged from parents and profiles. I = don't > remember now exactly the whole algorithm, but I hope this can help = you. > Also, this behavior may change in future. >=20 >=20 > Regards, > htfv (Aliaksei Lahachou) >=20 >=20 >=20 > On Fri, Jun 8, 2012 at 11:25 PM, Pascal Rapicault = wrote: >=20 >> Hi, >>=20 >> I have a situation where I need to execute a mojo just before the >> execution of the mojo bound to the phase. Is there a way to achieve = this >> without binding my mojo to the previous phase but to the phase that = I'm >> interested in? >>=20 >> For example, the "eclipse-plugin" packaging type has the following = phases: >> - [=85] >> - process-test-resources >> - package (which itself executes 2 mojos) >> - [=85] >>=20 >> I would like to execute a mojo just before the first mojo of the = package >> phase is executed, or even better in between the execution of the two = mojos >> executed by the package phase. >>=20 >> I could hook my mojo to the process-test-resources but I feel that = this is >> incorrect since the execution of my mojo should only happen if the = package >> phase does, otherwise it may screw up following builds. >>=20 >> Thanks. >>=20 >> Pascal >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >>=20 >>=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org