Re: Hooking before and after a phase

2012-06-11 Thread Pascal Rapicault
Thx On 2012-06-09, at 11:06 AM, Aliaksei Lahachou wrote: Hi, 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

Re: Hooking before and after a phase

2012-06-09 Thread Jeff MAURY
Hello, there is no way in Maven to insert a Mojo between two Mojo from a packaging. Each Mojo you add in your POM will be executed after the ones from the packaging. If you want to execute your Mojo before any Mojo of the package phase, then you can bind it to the prepare-package phase. Jeff

Re: Hooking before and after a phase

2012-06-09 Thread Aliaksei Lahachou
Hi, 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

Hooking before and after a phase

2012-06-08 Thread Pascal Rapicault
Hi, 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? For example, the eclipse-plugin packaging type has the