Thanks Stefan,
Maven Embedder seems to be of useful to me.
And now I am successfully able to run my jboss server goals using maven 
embedder.
But for more references I am not getting much of material on maven Embedder.
And at this point I am not able to decide how much stable is maven embedder to 
be used for my complete application?
I mean I don't have knowledge of any hidden issues of it.

Cheers!
Renu
-----Original Message-----
From: Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2008 6:40 PM
To: Maven Users List
Subject: Re: how maven run its plugin goals through java API????

You will need the Maven Embedder[0] if your really want to run Maven
goals. If you just want to execute the _logic_ of Maven goals, have a
look if there is a normal way of doing it. For example, dbUnit can be
run as Maven plugin, but is also available as Java API[1]. Especially,
starting an instance of JBoss could be done via Cargo[2], or the JBoss
Microcontainer[3], or the Embedded EJB3 Container[4].

Stefan

[0] http://maven.apache.org/guides/mini/guide-embedding-m2.html
[1] http://www.dbunit.org/howto.html
[2] http://cargo.codehaus.org/Quick+start
[3] http://www.jboss.com/products/jbossmc
[4] http://docs.jboss.org/ejb3/embedded/embedded.html

Renu Gupta wrote:
> Hey will b of grt help..................:)
> Can u plz send the contents
>
> Thanx
>
> Cheers!
> Renu
>
> -----Original Message-----
> From: Vikramaditya Garg [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2008 11:09 AM
> To: Maven Users List
> Subject: RE: how maven run its plugin goals through java API????
>
> I did that some time back.I will send u the xml contents what I did.
> Thanks
> Vikramaditya Garg
> STS
> Infosys Technologies Limited.
>
> -----Original Message-----
> From: Renu Gupta [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2008 10:58 AM
> To: Maven Users List
> Subject: how maven run its plugin goals through java API????
>
> Hi,
> Can we write our own common java code to run plugin goals?????//
> Like if I wanna run a goal mvn jboss:start
> Now can I code a java class to run this goal instead of using "mvn 
> jboss:start"
>
> Any suggestions.,comments or help shall b appreciable..................... :)
>
> Cheers!
> Renu
>
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient, please
> notify the sender by e-mail and delete the original message. Further, you are 
> not
> to copy, disclose, or distribute this e-mail or its contents to any other 
> person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has 
> taken
> every reasonable precaution to minimize this risk, but is not liable for any 
> damage
> you may sustain as a result of any virus in this e-mail. You should carry out 
> your
> own virus checks before opening the e-mail or attachment. Infosys reserves the
> right to monitor and review the content of all messages sent to or from this 
> e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
> ---------------------------------------------------------------------
> 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]
>


--
best regards,

Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.    +49 (341) 9 60 50 07
fax.    +49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.    www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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