views:

8

answers:

0

Is there a way to catch the MojoExecutionException in a "global way"?

Example:

My plugin performs some tasks. Later the build phase proceeds and an error occurs so an exception is thrown. I would like to catch that exception somehow and perform a clean up, or execute another plugin, etc.

Is there a way to do this? Can't find anything on the net.

Thanks Stelios