You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff MAURY <je...@jeffmaury.com> on 2012/09/05 09:43:29 UTC

Re: Question about plugin execution ordering

Thanks for the help.
For this in order to fix it using POM only solution:
https://github.com/TimMoore/mojo-executor

Jeff


On Fri, Aug 31, 2012 at 11:09 AM, Anders Hammar <an...@hammar.net> wrote:

> It's not supported. The best solution I can think of is to produce your own
> maven plugin,that does what you want. With Maven 3, you can produce that
> plugin as part of you multi-module build if you don't want to keep it
> outside of it.
>
> /Anders
>
> On Fri, Aug 31, 2012 at 10:57 AM, Jeff MAURY <jeffmaury@jeffmaury.com
> >wrote:
>
> > Hello,
> >
> > I have a question about plugin execution ordering. I understood this has
> > been fixed in 3.0.3 but I have a special case.
> > I need to execute differents goals from the same plugin in the same
> phase:
> > so far so good, I just need to list them in the proper order in my POM
> > file.
> > But now, I want to insert between the two goal the execute of the clean
> > goal of the Maven clean goal.
> > So I duplicated the definition of the first plugin, each declaration
> > declaring only one goal and insert the Maven clean plugin execution
> between
> > the two.
> > I am facing several problems
> > 1) it seems multi declaration of the same plugin generates a warning and
> > leads to problems as I can't see the execution of the first goal
> > 2) do you think this use case is not supported
> >
> > Thanks
> > Jeff
> >
> >
> > --
> > Jeff MAURY
> >
> >
> > "Legacy code" often differs from its suggested alternative by actually
> > working and scaling.
> >  - Bjarne Stroustrup
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
> > http://www.twitter.com/jeffmaury
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>



-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury