You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Anders Blehr <ab...@gmail.com> on 2007/10/11 14:01:23 UTC

Is it possible to obtain invoked phase/goal from mojo?

Hi,

The behaviour of a mojo I'm working on depends on whether the mojo was
invoked standalone or as a phase in the lifecycle.  More specifically, the
behaviour depends on whether its associated phase is the last (i.e.,
invoked) phase in the current execution.  Is it possible to obtain the
lifecycle phase or goal that mvn was invoked with from within a mojo?

Thanks,
- Anders.

Anders Blehr
Senior Solutions Architect
FAST
Torggata 2-4-6
N-0181 Oslo, Norway
www.fastsearch.com