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: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
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