dev  

Re: How to have a mojo goal dependent on compile goal

Kay Kay
Sat, 30 Jan 2010 11:27:19 -0800

Adding this to the mojo on top, works. Thanks.


 * @execute phase="compile"


On 01/30/2010 11:06 AM, Justin Edelson wrote:
Please read the @execute descriptor documention on this page: http://maven.apache.org/developers/mojo-api-specification.html

Justin

On 1/30/10 1:48 PM, Kay Kay wrote:
I have defined a class inheriting from AbstractMojo with @goal mygoal.

So, everytime  we do

$ mvn myplugin:mygoal

I want to invoke the compile goal ( $ mvn compile ) behind the scenes and my goal getting launched only if the former was a success. Is there an annotation / configuration in pom.xml of my maven plugin to do this.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org