How to get the name of goal in maven2's Mojo at runtime

Posted by Advait on Stack Overflow See other posts from Stack Overflow or by Advait
Published on 2009-05-04T08:40:39Z Indexed on 2010/04/30 0:07 UTC
Read the original article Hit count: 339

Filed under:
|
|

For Maven2 how can I get the name of goal currently being executed in Mojo's execute method? Precisely I need value of @goal attribute inside Mojo's execute method.

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about mojo