Writing a Maven Plugin/Mojo: how do you make a goal force the execution of other goals?

You could have something like the below (taken from the CompilerMojo).

You could have something like the below (taken from the CompilerMojo): /** * @author Jason van Zyl * @version $Id: CompilerMojo. Java 941498 2010-05-05 21:24:11Z krosenvold $ * @since 2.0 * @goal compile * @phase compile * @threadSafe * @requiresDependencyResolution compile */ By setting this over your class, it will execute during the compile phase (in this example). The compile phase requires all the previous phases to have executed first (validate, generate-sources, process-sources, generate-resources, process-resources...).

Basically, pick a phase after the one you need (or even the same one) and it should work.

That's how to specify that the do Mojo would bind to the compile phase by default and be named compile as a goal, but unfortunately I don't see how it says "oh and make sure that 'prepare' was run first". At this point it looks like the only answer is a custom lifecycle... which I've got working but I'm not sure I like yet. – Justin Searls Jul 2 at 17:24 Interesting.

Maybe you could try the #maven IRC channel in irc.codehaus.org. Perhaps some of the guys there will have a better suggestion. – carlspring Jul 2 at 18:01.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions