You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Philippe Faes <Ph...@elis.UGent.be> on 2006/09/20 10:19:21 UTC

calling external maven

Dear all,

I'm creating a mvn plug-in that needs to start an external maven build.
Is there an API function I can use for this?

thanks

-- 
ir. Philippe Faes
Ghent University - Department ELIS
Sint-Pietersnieuwstraat 41 -- B-9000 Gent
Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
    http://www.elis.UGent.be/~pfaes
ON5DEU   --   LPIC1  --  gpg-key:173720B6


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


Re: calling external maven

Posted by John Casey <ca...@gmail.com>.
Just so you know, there is a project in the shared-component space to do
this (I don't think it's been released yet, though). It's called
maven-invoker, and it has the advantage that eventually its API is meant to
be converged with the embedder (in the maven 2.1 timeframe). I'm using it
now to run functional tests for the latest assembly plugin snapshots, by way
of the maven-invoker-plugin, in the sandbox. If you were interested, that
plugin offers some insight into using the invoker.

SVN:

invoker: http://svn.apache.org/repos/asf/maven/shared/trunk/maven-invoker
invoker-plugin
http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin

HTH,

john

On 9/20/06, Philippe Faes <Ph...@elis.ugent.be> wrote:
>
> Hi Raphaël,
>
> Thanks for your help. I decided on using
> org.apache.maven.plugins.release.exec.ForkedMavenExecutor
> It's too bad I have to depend on the entire release plugin, but it seems
> to work just fine.
>
> Philippe
>
> On Wed, 2006-09-20 at 10:24 +0200, Raphaël Piéroni wrote:
> > Hi,
> >
> > you can use :
> > - the embedder (as in mevenide)
> > - execute an inner lifecycle (as in the release or cargo plugins)
> >
> > Hope ths helps.
> >
> > Raphaël
> >
> > 2006/9/20, Philippe Faes <Ph...@elis.ugent.be>:
> > >
> > > Dear all,
> > >
> > > I'm creating a mvn plug-in that needs to start an external maven
> build.
> > > Is there an API function I can use for this?
> > >
> > > thanks
> > >
> > > --
> > > ir. Philippe Faes
> > > Ghent University - Department ELIS
> > > Sint-Pietersnieuwstraat 41 -- B-9000 Gent
> > > Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
> > >     http://www.elis.UGent.be/~pfaes
> > > ON5DEU   --   LPIC1  --  gpg-key:173720B6
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> > >
> > >
> --
> ir. Philippe Faes
> Ghent University - Department ELIS
> Sint-Pietersnieuwstraat 41 -- B-9000 Gent
> Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
>     http://www.elis.UGent.be/~pfaes
> ON5DEU   --   LPIC1  --  gpg-key:173720B6
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: calling external maven

Posted by Philippe Faes <Ph...@elis.UGent.be>.
Hi Raphaël,

Thanks for your help. I decided on using
org.apache.maven.plugins.release.exec.ForkedMavenExecutor
It's too bad I have to depend on the entire release plugin, but it seems
to work just fine.

Philippe

On Wed, 2006-09-20 at 10:24 +0200, Raphaël Piéroni wrote:
> Hi,
> 
> you can use :
> - the embedder (as in mevenide)
> - execute an inner lifecycle (as in the release or cargo plugins)
> 
> Hope ths helps.
> 
> Raphaël
> 
> 2006/9/20, Philippe Faes <Ph...@elis.ugent.be>:
> >
> > Dear all,
> >
> > I'm creating a mvn plug-in that needs to start an external maven build.
> > Is there an API function I can use for this?
> >
> > thanks
> >
> > --
> > ir. Philippe Faes
> > Ghent University - Department ELIS
> > Sint-Pietersnieuwstraat 41 -- B-9000 Gent
> > Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
> >     http://www.elis.UGent.be/~pfaes
> > ON5DEU   --   LPIC1  --  gpg-key:173720B6
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
-- 
ir. Philippe Faes
Ghent University - Department ELIS
Sint-Pietersnieuwstraat 41 -- B-9000 Gent
Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
    http://www.elis.UGent.be/~pfaes
ON5DEU   --   LPIC1  --  gpg-key:173720B6


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


Re: calling external maven

Posted by Raphaël Piéroni <ra...@gmail.com>.
Hi,

you can use :
- the embedder (as in mevenide)
- execute an inner lifecycle (as in the release or cargo plugins)

Hope ths helps.

Raphaël

2006/9/20, Philippe Faes <Ph...@elis.ugent.be>:
>
> Dear all,
>
> I'm creating a mvn plug-in that needs to start an external maven build.
> Is there an API function I can use for this?
>
> thanks
>
> --
> ir. Philippe Faes
> Ghent University - Department ELIS
> Sint-Pietersnieuwstraat 41 -- B-9000 Gent
> Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
>     http://www.elis.UGent.be/~pfaes
> ON5DEU   --   LPIC1  --  gpg-key:173720B6
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>