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
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
Correct and correct!
For settings.xml, the full syntax is:
pluginGroups
pluginGroupcom.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]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Try adding the class-level annotation:
@aggregator
to your mojo. This will tell the mojo to only execute at the top level.
If you need access to the List of project instances in the current
build, use the following:
/**
~ * @parameter
Thanks for your answer John! :o)
Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91 - [EMAIL PROTECTED]
John Casey