Correct and correct!
For "settings.xml", the full syntax is:
<pluginGroups>
<pluginGroup>com.mycompany.plugins</pluginGroup>
</pluginGroups>
Thanks Milos!
Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91 - [EMAIL PROTECTED]
Milos Kleint
<[EMAIL PROTECTED]
n.COM> Pour
Maven Users List
18/10/2005 14:41 <[email protected]>
cc
Veuillez Objet
répondre à Re: [m2] Running a goal only once
Maven Users List in a multiproject context
<[EMAIL PROTECTED]
che.org>
i think adding @aggregator to the mojo's class javadoc does the trick..
there needs to be the plugin's group id added to the settings.xml file
.. the element is called something like <pluginGroups>
milos
[EMAIL PROTECTED] wrote:
>
>
> Hi,
>
> I have defined a Mojo that does some work (create some necessary folders,
> init some dynamic values, ...) before running an install over my
> multi-module project. When I run "m2 myGroupId:myArtifactId:myGoal
install"
> on my master project, my goal gets executed for each submodule while I
need
> it to be executed only once at the very beginning of the build.
> Is there a way to tell the Mojo that it must be executed only once? I
> looked at the "plugin.xml" file placed in the META-INF of the plugin, but
I
> can't figure out what the different parameters are for
> (requiresDirectInvocation, inheritedByDefault, executionStrategy, ...).
>
> Btw, is there also a way to define an alias so that I don't need to write
> "m2 myGroupId:myArtifactId:myGoal", but only "m2 shortId:myGoal" for
> instance ?
>
> Thanks for your help!
>
> Best Regards / Cordialement,
> Fabrice BELLINGARD
> DINQ/DSIN/INSI/EATE/IDVS/AIDV
> (+33) (01 61) 45 15 91 - [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]