your best bet is to bind an execution of the antrun plugin to the install phase and use the ant copy task to copy the file for you

Sent from my [rhymes with tryPod] ;-)

On 22 Nov 2009, at 13:43, 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

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

Reply via email to