maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baptiste MATHUS>
Subject Re: Plugin insantiation: once per execution? Once per build?
Date Thu, 08 Sep 2011 06:27:58 GMT
Hi, I suppose that you ask that.because you're writing a mojo yourself. I
don't know the answer but it seems to me it would quite simple to check it
by code: just add a log in your constructor and see if displays once or many

By the way, also think abt "thread-safing" your code to prevent having bugs
using -T switch.

Le 7 sept. 2011 21:21, "Laird Nelson" <> a écrit :
> What is the lifespan of a Mojo?
> Is a new one created for each execution? Is it discarded thereafter, or
> does Maven retain a reference to it?
> Or is only one created and then reconfigured/reset?
> I didn't find any obvious documentation explaining this, but as usual my
> apologies if I've overlooked something.
> Thanks,
> Laird
> --

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