You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by harishsyndrome <ha...@tcs.com> on 2009/10/12 13:31:42 UTC

How to Invoke Maven inside Java Program

Is there any launcher or API kind of thing to invoke maven inside a java
program.

In Ant

I can invoke ant task using Ant Launcher

Launcher.main(String[]);

Is there any thing similar to that for maven.

I desperately need that.

Thankyou.
-- 
View this message in context: http://www.nabble.com/How-to-Invoke-Maven-inside-Java-Program-tp25854205p25854205.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to Invoke Maven inside Java Program

Posted by harishsyndrome <ha...@tcs.com>.
Hello LieGrue.

Thanks for your Very timely reply.

Am all set to work. But i cant find the Jar File for MavenExecutionResults.
Even not found in maven repository.

Some help  again will be appreciated
-- 
View this message in context: http://www.nabble.com/How-to-Invoke-Maven-inside-Java-Program-tp25854205p25866860.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to Invoke Maven inside Java Program

Posted by Jason van Zyl <ja...@sonatype.com>.
An embedded form of Maven will not be ready for use until the 3.0  
betas start. There is no ETA. Build from trunk if you want to try,  
it's not support until the betas so use at your own risk.

On 2009-10-12, at 9:02 PM, harishsyndrome wrote:

>
> Hello LieGrue.
>
> Thanks for your Very timely reply.
>
> Am all set to work. But i cant find the Jar File for  
> MavenExecutionResults.
> Even not found in maven repository.
>
> Some help  again will be appreciated
> -- 
> View this message in context: http://www.nabble.com/How-to-Invoke-Maven-inside-Java-Program-tp25854205p25866861.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
----------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to Invoke Maven inside Java Program

Posted by harishsyndrome <ha...@tcs.com>.
Hello LieGrue.

Thanks for your Very timely reply.

Am all set to work. But i cant find the Jar File for MavenExecutionResults.
Even not found in maven repository.

Some help  again will be appreciated
-- 
View this message in context: http://www.nabble.com/How-to-Invoke-Maven-inside-Java-Program-tp25854205p25866861.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to Invoke Maven inside Java Program

Posted by Mark Struberg <st...@yahoo.de>.
have you looked at the maven-embedder [1]?

LieGrue,
strub

[1] http://maven.apache.org/guides/mini/guide-embedding-m2.html



--- On Mon, 10/12/09, harishsyndrome <ha...@tcs.com> wrote:

> From: harishsyndrome <ha...@tcs.com>
> Subject: How to Invoke Maven inside Java Program
> To: users@maven.apache.org
> Date: Monday, October 12, 2009, 1:31 PM
> 
> Is there any launcher or API kind of thing to invoke maven
> inside a java
> program.
> 
> In Ant
> 
> I can invoke ant task using Ant Launcher
> 
> Launcher.main(String[]);
> 
> Is there any thing similar to that for maven.
> 
> I desperately need that.
> 
> Thankyou.
> -- 
> View this message in context: http://www.nabble.com/How-to-Invoke-Maven-inside-Java-Program-tp25854205p25854205.html
> Sent from the Maven - Users mailing list archive at
> Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org