Thx.

On 2012-08-23, at 12:49 PM, Hilco Wijbenga wrote:

> On 23 August 2012 05:56, Pascal Rapicault <[email protected]> wrote:
>> I would like to know if there is a way to have a plugin be executed right at 
>> the end of the build no matter what.
>> The situation I have is as follow. Early on in the build I rename a file 
>> from a.txt.off to a.txt and at the end I rename it back such that no 
>> problems are being caused for subsequent builds. This works great when the 
>> module build is executed in its entirety, however when it fails part way 
>> through, then the file is not renamed and subsequent build fails.
>> Therefore my question, is there a way to enforce the execution of a plugin 
>> no matter what.
> 
> More than likely, you can do what you want (or at least something
> similar) using a Maven extension. See [1] (there isn't much
> documentation but I managed to figure it out so I'm sure you can too.
> :-) ). Just hook into the
> org.apache.maven.execution.ExecutionListener.
> 
> [1] http://maven.apache.org/examples/maven-3-lifecycle-extensions.html.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to