FAQ

How to have a mojo goal dependent on compile goal

Kay Kay
Jan 30, 2010 at 7:27 pm
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-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org

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

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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›

2 users in discussion

Kay Kay: 2 posts Justin Edelson: 1 post