dcabasson wrote: > > I guess you can't do that out of the box in Maven 2. > > Executing maven foo:bar, is equivalent to calling the foo plugin with the > bar mojo. So I guess you would have to create a scripting (ant) plugin. > That's not that difficult, and it's well documented here: > http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html > > Good luck! > > Denis. > >
Thanks for replying I have had a look at those and can already make simple ant scripts. What I want though, is to be able to invoke mojos from other targets. To give a better example: I have plugin A (Ant Script) and plugin B (Unknown). plugin A has 'target1', plugin B has 'target2'. In the middle of 'target1', I want it to invoke 'target2' If there's a java way of implementing this, that would also be ideal. -- View this message in context: http://www.nabble.com/-m2--Calling-goals-outside-a-plugin-tf1970783.html#a5463364 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
