I have written an "Image Scaling" plugin in Maven that is working as expected. It doesn't directly participate in the build, but assists it with image scaling and file pre-processing; it needs to be run when we get new images only, not on every build. We run it as needed, like:
mvn image:scaling
All have been good until now.
Recently there's the need to "prepend" extra tasks to it, and I thought the antrun plugin could do trick with a few tasks, and it actually works well.
However, I can't find how to run the antrun plugin just before the image:scaling.
I was thinking I could set the phase of the antrun plugin to something like "pre-scaling"... but... where do I define the "pre-scaling" phase? If I need to create a new lifecycle, how do I do that?