maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Blehr" <abl...@gmail.com>
Subject Is it possible to obtain invoked phase/goal from mojo?
Date Thu, 11 Oct 2007 12:01:23 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message