Re: [m2] Running a goal only once in a multiproject context

2005-10-18 Thread fabrice . belingard
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

Re: [m2] Running a goal only once in a multiproject context

2005-10-18 Thread John Casey
-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 default-value

Re: [m2] Running a goal only once in a multiproject context

2005-10-18 Thread fabrice . belingard
Correct and correct! For "settings.xml", the full syntax is: com.mycompany.plugins Thanks Milos! Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED]

Re: [m2] Running a goal only once in a multiproject context

2005-10-18 Thread Milos Kleint
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 milos [EMAIL PROTECTED] wrote: Hi, I have defined a Mojo that does some work (create some necessary folde

[m2] Running a goal only once in a multiproject context

2005-10-18 Thread fabrice . belingard
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