It should work with the antrun plugin ( and ant's <copy> task. )

( configure an antrun plugin execution to attach to install phase )

--sony

On Sun, Nov 22, 2009 at 8:43 AM, eyal edri <eyal.e...@gmail.com> wrote:

> I want to config the pom project to copy the final jar file to an
> installation dir and bind it to the 'install' phase.
>
> meaning, when i "just" build the project, the jar will be built into the
> default target/project.jar.
>
> but when i "install" it should be also should be copied to
> /usr/local/application/project.jar.
>
> i tried adding "<OutputDirectory> in the 'jar' plugin, but it just changed
> the default target.
>
> --
> Eyal Edri
>

Reply via email to