You can use MavenEmbedder to do this. Pretty sure there was some example code floating on the user@ or dev@ list.

I wrote a delegate mojo a while ago that does something similar but don't have the code handy here, but I can dig later today if you are keen at looking at it.

Cheers,
Rahul

Jason Dillon wrote:
Is there any (easy) way to call a goal from a mojo?

I've got a geronimo:install goal, that does some assembly unpacking, and a geronimo:start goal which starts up the server. geronimo:start really needs to call geronimo:install before it runs.

Is there an easy way to do this?

The only way I can think to share this code, is to add more abstract classes to hold the methods... but that gets messy fast.

Any ideas?

--jason

---------------------------------------------------------------------
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]

Reply via email to