You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lee Meador <le...@leemeador.com> on 2008/04/03 21:11:35 UTC

Re: Mvn 2 plugin to copy files?

Stefanie,

Google "maven antrun plugin" and select the 1st search result returned. The
title is "Maven AntRun Plugin - Introduction"

Click on "Usage" in the left menu area. This will show the XML used to
invoke the antrun plugin. Add that to the pom that generates the artifact
you want copied or add it to a pom for a project that depends on all the
poms that create all the artifacts you want to copy..

The lifecycle you use depends on your plans to use this. You could use
"package" to get it top copy the files whenever you hit the package phase
(which just preceeds 'install').

Then put ant commands to copy the files you want to copy inside the tasks
tag.

Find info on ant copy task with google by searching for "ant copy task" and
choosing the top result. The examples near the bottom of that page will
probably do whatever you want.

Thanks.

-- Lee

On Fri, Mar 28, 2008 at 11:58 AM, <Do...@gmx.de> wrote:

> >I use the antrun plugin for copying files around and such. You just put
> in
> >the ant equivalent to your xml, which shouldn't be much different from
> what
> >you have.
>
> Could you give an example of how this is done? I don't know much about
> antrun and how to use it...
>
> Thanks in advance,
>
> Stefanie
> --
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com