You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Beagan, Patrick" <pb...@atg.com> on 2007/01/18 23:58:41 UTC
how do I copy a dependency to a local directory
I'm have a project that has a few dependencies. This works great for
the compile phase but for my packaging phase, I've created
an ant task that packages up all my files locally in a zip to be
distributed. I need to copy my dependencies (jars) from the remote
repository to a local directory so I can include them in my zip. How
do I do this? Thanks.
Re: how do I copy a dependency to a local directory
Posted by Mel Riffe <sh...@gmail.com>.
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}"/>
<ant:copy todir="${basedir}/tmp" file="${lib.path}"/>
</j:forEach>
Can you use that?
--Mel
On 1/18/07, Beagan, Patrick <pb...@atg.com> wrote:
>
> I'm have a project that has a few dependencies. This works great for
> the compile phase but for my packaging phase, I've created
>
> an ant task that packages up all my files locally in a zip to be
> distributed. I need to copy my dependencies (jars) from the remote
> repository to a local directory so I can include them in my zip. How
> do I do this? Thanks.
>
>
>
Re: how do I copy a dependency to a local directory
Posted by "dawn.angelito" <da...@simulalabs.com>.
To do this, you may use the maven-dependency-plugin.
http://maven.apache.org/plugins/maven-dependency-plugin/usage.html
Hope this helps.
Dawn
Beagan, Patrick wrote:
>
> I'm have a project that has a few dependencies. This works great for
> the compile phase but for my packaging phase, I've created
>
> an ant task that packages up all my files locally in a zip to be
> distributed. I need to copy my dependencies (jars) from the remote
> repository to a local directory so I can include them in my zip. How
> do I do this? Thanks.
>
>
>
--
View this message in context: http://www.nabble.com/how-do-I-copy-a-dependency-to-a-local-directory-tf3037253s177.html#a8443914
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