You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Emmanuel Venisse <em...@venisse.net> on 2005/11/04 13:46:29 UTC

Re: [m2] does a plugin bound to a phase execute before or after that phase?

m2 collect all plugins bound in a specific phase and run them one by one
without a specific order.

David Sag said:
> That's interesting.  To try this I bound checkstyle to my compile phase
> and lo - the compile happened and then checkstyle ran.  You are saying
> that checkstyle should have run "in the phase"... what does that mean
> exactly?  Compilation is a pretty discrete process so I don't see how or
> why checksyle would run while the compile is happening.
>
> In answer to your question, I want my plugin to run once the source files
> have been processed, but before any resources are generated.
>
> dave
>
>
> "Emmanuel Venisse" <em...@venisse.net> wrote on 04-11-2005 13:20:27:
>
>> it run in the phase.
>> All plugin bound to a phase will be run in this phase without order.
>>
>> why do you want to run it between this two phases?
>>
>> Emmanuel
>>
>> David Sag said:
>> > Hi there,
>> >
>> > I want my plugin to run after the process-sources phase, and before
> the
>> > generate-resources phase.  if i bind it to the process-sources phase
> will
>> > it run after that or before it?
>> >
>> > dave
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] does a plugin bound to a phase execute before or after that phase?

Posted by Emmanuel Venisse <em...@venisse.net>.
it isn't random. You'll obtain always the same result. But if you bind an
other plugin to this phase, you cannot know if it will be run before or
after the checkstyle plugin.

I don't remember exactly how it load plugin, but I think it load core
plugins (in our case, compiler plugin) and after plugins defined by user
in pom. It's why you have the compile execution before the checkstyle
execution

Emmanuel

David Sag said:
> by that do you mean that it's random and so sometimes checkstyle might run
> before the compile and sometimes after?
>
> that's a strange architectural decision
>
> dave
>
>
> "Emmanuel Venisse" <em...@venisse.net> wrote on 04-11-2005 13:46:29:
>
>> m2 collect all plugins bound in a specific phase and run them one by one
>> without a specific order.
>>
>> David Sag said:
>> > That's interesting.  To try this I bound checkstyle to my compile
> phase
>> > and lo - the compile happened and then checkstyle ran.  You are saying
>> > that checkstyle should have run "in the phase"... what does that mean
>> > exactly?  Compilation is a pretty discrete process so I don't see how
> or
>> > why checksyle would run while the compile is happening.
>> >
>> > In answer to your question, I want my plugin to run once the source
> files
>> > have been processed, but before any resources are generated.
>> >
>> > dave
>> >
>> >
>> > "Emmanuel Venisse" <em...@venisse.net> wrote on 04-11-2005
> 13:20:27:
>> >
>> >> it run in the phase.
>> >> All plugin bound to a phase will be run in this phase without order.
>> >>
>> >> why do you want to run it between this two phases?
>> >>
>> >> Emmanuel
>> >>
>> >> David Sag said:
>> >> > Hi there,
>> >> >
>> >> > I want my plugin to run after the process-sources phase, and before
>> > the
>> >> > generate-resources phase.  if i bind it to the process-sources
> phase
>> > will
>> >> > it run after that or before it?
>> >> >
>> >> > dave
>> >> >
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >> For additional commands, e-mail: users-help@maven.apache.org
>> >>
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] does a plugin bound to a phase execute before or after that phase?

Posted by David Sag <ds...@epo.org>.
by that do you mean that it's random and so sometimes checkstyle might run 
before the compile and sometimes after?

that's a strange architectural decision

dave


"Emmanuel Venisse" <em...@venisse.net> wrote on 04-11-2005 13:46:29:

> m2 collect all plugins bound in a specific phase and run them one by one
> without a specific order.
> 
> David Sag said:
> > That's interesting.  To try this I bound checkstyle to my compile 
phase
> > and lo - the compile happened and then checkstyle ran.  You are saying
> > that checkstyle should have run "in the phase"... what does that mean
> > exactly?  Compilation is a pretty discrete process so I don't see how 
or
> > why checksyle would run while the compile is happening.
> >
> > In answer to your question, I want my plugin to run once the source 
files
> > have been processed, but before any resources are generated.
> >
> > dave
> >
> >
> > "Emmanuel Venisse" <em...@venisse.net> wrote on 04-11-2005 
13:20:27:
> >
> >> it run in the phase.
> >> All plugin bound to a phase will be run in this phase without order.
> >>
> >> why do you want to run it between this two phases?
> >>
> >> Emmanuel
> >>
> >> David Sag said:
> >> > Hi there,
> >> >
> >> > I want my plugin to run after the process-sources phase, and before
> > the
> >> > generate-resources phase.  if i bind it to the process-sources 
phase
> > will
> >> > it run after that or before it?
> >> >
> >> > dave
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>