Thanks a lot for the definitive answer Brett. 2009/10/13 Brett Porter <[email protected]>
> It's not possible. Executions are for binding to the lifecycle. > > The best way to achieve what you are doing is to put execution ID1 > somewhere in the lifecycle before deploy, and ID2 in the deploy phase, then > run "mvn clean deploy". > > If they need to be optional, use a profile and run mvn -Pwith-ID1-and-ID2 > clean deploy. > > - Brett > > > On 14/10/2009, at 12:55 AM, Jeff Johnston wrote: > > I would also love to hear how to do this. I've asked on the mailing list >> and #maven before but I've never found out a way of doing it. >> >> 2009/10/13 kkarad <[email protected]> >> >> >>> Yes, the prefix:goal is not bound to a phase >>> >>> >>> >>> Alexander-129 wrote: >>> >>>> >>>> So you want to change Maven build lifecycle without binding goals to >>>> predefined phases? >>>> >>>> 2009/10/13 kkarad <[email protected]> >>>> >>>> >>>>> Hi all, >>>>> >>>>> Do you know how I can call a maven plugin from command line and run a >>>>> specific execution by defining its id? >>>>> >>>>> Something like: mvn clean <prefix>:<goal>:<execution-id-1> deploy >>>>> <prefix>:<goal>:<execution-id-2> >>>>> >>>>> This invocation is supposed to run the plugins in the following order: >>>>> >>>>> 1. clean >>>>> 2. <prefix>:<goal>:<execution-id-1> >>>>> 3. deploy >>>>> 4. <prefix>:<goal>:<execution-id-2> >>>>> >>>>> Note: I am aware of the "default-cli" execution id but as you can >>>>> understand >>>>> from what I want to do I need more control during mvn invocation. >>>>> >>>>> Thank you in advance, >>>>> >>>>> Kostas >>>>> -- >>>>> View this message in context: >>>>> >>>>> >>> http://www.nabble.com/Invoke-a-plugin-from-command-line-and-specifing-an-execution-id-tp25870281p25870281.html >>> >>>> Sent from the Maven - Users mailing list archive at Nabble.com. >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>> >>>>> >>>>> >>>> >>>> -- >>>> Regards, >>>> Alexander >>>> >>>> >>>> >>> -- >>> View this message in context: >>> >>> http://www.nabble.com/Invoke-a-plugin-from-command-line-and-specifing-an-execution-id-tp25870281p25870892.html >>> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> 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] > >
