Hi all,

To summarise the problem here, we need a way for plugins to depend on
other plugin's goals.  The example use case is the tomcat:exploded
goal which needs to depend on war:exploded, and not war:war since this
has a performance hit.  The tomcat:exploded goal depends on the
package phase, so we need to execute the package phase but in a
slightly modified lifecycle.

We have the components.xml method which allows a new lifecycle to be
defined for a new packaging, but we need to keep the packaging as war.
 We also have the lifecycles.xml method which overlays extra goals on
top of the current lifecycle, but we need to replace one goal in the
lifecycle with another.

I'm no m2 lifecycle guru here, but a couple of ideas:

1) Allow multiple lifecycles per packaging.  Does the lifecycle id
element not cater for this already?  If so could a mojo inflict an
alternative lifecycle which it defines for the given packaging?

2) Override existing core lifecycles with ones supplied by the plugin.
 I tried doing this but the core war lifecycle always took precedence.

3) The ability to unbind goals from phases in the lifecycle.  There
doesn't seem to a mechanism to do this AFAIK?

Any discussion appreciated.

Cheers,

Mark

On 31/10/05, Mark Hobson <[EMAIL PROTECTED]> wrote:
> On 31/10/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > I see - you are right, that was by design.
>
> Thanks for clarifying, it seemed that way but wasn't sure if I was
> missing something.
>
> > I'll have to think about the best path forward on this. Can we move it
> > to the dev list?
>
> Sure, I've posted to dev and cc'ed to user, in case people are
> tracking this.  Just remember to un-cc user on reply..
>
> Cheers,
>
> Mark
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to