RE: Ignore missing goals when using reactor?
Two replies are better than nothing ;-) Arnaud > -Message d'origine- > De : baleineca [mailto:[EMAIL PROTECTED] > Envoyé : mardi 22 février 2005 19:20 > À : Maven Users List > Objet : Re: Ignore missing goals when using reactor? > > It appears there was a reply already similar to this... I > didn't mean to repeat it... I'm playing around with my gmail > POP settings :- ) and didn't catch the previous reply... > > baleineca wrote: > > > One solution would be to have the sub projects inherit from > a common > > parent (probably where you are running your reactor from): see > > http://maven.apache.org/reference/project-descriptor.html#extend > > > > You can then have the goal in the parent maven.xml that > does nothing. > > Sub projects that want to do something overwrite the goal > in their own > > maven.xml. > > > > > > Jon Andersen wrote: > > > >> I'd like to use the reactor to execute goals across many projects, > >> but not have the build fail when a goal does not exist. > That is, if > >> a sub-project doesn't have the required goal, just ignore that > >> subproject and move on. > >> > >> The reactor has the ignoreFailures attribute, but that > doesn't work > >> for me. I don't want to ignore goals that fail, just goals that > >> don't exist. > >> > >> Has anyone solved this before? > >> > >> Thanks, > >> > >> -Jon Andersen > >> Software developer > >> 734-260-6083 (work) > >> 734-646-5577 (home) > >> Digital Media Commons - Duderstadt Center University of Michigan > >> > >> > >> > - > >> 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ignore missing goals when using reactor?
It appears there was a reply already similar to this... I didn't mean to repeat it... I'm playing around with my gmail POP settings :- ) and didn't catch the previous reply... baleineca wrote: One solution would be to have the sub projects inherit from a common parent (probably where you are running your reactor from): see http://maven.apache.org/reference/project-descriptor.html#extend You can then have the goal in the parent maven.xml that does nothing. Sub projects that want to do something overwrite the goal in their own maven.xml. Jon Andersen wrote: I'd like to use the reactor to execute goals across many projects, but not have the build fail when a goal does not exist. That is, if a sub-project doesn't have the required goal, just ignore that subproject and move on. The reactor has the ignoreFailures attribute, but that doesn't work for me. I don't want to ignore goals that fail, just goals that don't exist. Has anyone solved this before? Thanks, -Jon Andersen Software developer 734-260-6083 (work) 734-646-5577 (home) Digital Media Commons - Duderstadt Center University of Michigan - 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]
Re: Ignore missing goals when using reactor?
One solution would be to have the sub projects inherit from a common parent (probably where you are running your reactor from): see http://maven.apache.org/reference/project-descriptor.html#extend You can then have the goal in the parent maven.xml that does nothing. Sub projects that want to do something overwrite the goal in their own maven.xml. Jon Andersen wrote: I'd like to use the reactor to execute goals across many projects, but not have the build fail when a goal does not exist. That is, if a sub-project doesn't have the required goal, just ignore that subproject and move on. The reactor has the ignoreFailures attribute, but that doesn't work for me. I don't want to ignore goals that fail, just goals that don't exist. Has anyone solved this before? Thanks, -Jon Andersen Software developer 734-260-6083 (work) 734-646-5577 (home) Digital Media Commons - Duderstadt Center University of Michigan - 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]
Re: Ignore missing goals when using reactor?
long short, can you make all projects inherit a master project which has your goal to do nothing. This way reactor will invoke the dummy goal when it is not able to find goal in the targeted project. -D On Fri, 18 Feb 2005 14:41:01 -1000, Jon Andersen <[EMAIL PROTECTED]> wrote: > I'd like to use the reactor to execute goals across many projects, but > not have the build fail when a goal does not exist. That is, if a > sub-project doesn't have the required goal, just ignore that subproject > and move on. > > The reactor has the ignoreFailures attribute, but that doesn't work for > me. I don't want to ignore goals that fail, just goals that don't > exist. > > Has anyone solved this before? > > Thanks, > > -Jon Andersen > Software developer > 734-260-6083 (work) > 734-646-5577 (home) > Digital Media Commons - Duderstadt Center > University of Michigan > > - > 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]