Try something like this in your maven.xml file:
<goal name="your-goal">
<mkdir dir="${basedir}/target/lib"/>
<j:forEach var="dep" items="${pom.dependencies}">
<copy
todir="${basedir}/target/lib"
file="${maven.repo.local}/${dep.artifactDirectory}/jars/${dep.artifact}"/>
</j:forEach>
</goal>
.. and tell me if it works ;-)
- Vincent
> -----Original Message-----
> From: Kelly Sonderegger [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 27, 2003 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: I want to copy dependency jars to a /lib location...how?
>
>
> I apologize as I've tried to find this in the archives but can't seem
> too. And maybe what I'm trying to accomplish should be done in a
> different fashion.
>
> But basically I'm just trying to copy jars specified by my project
> dependencies into a target/lib directory. Obviously I could just
> respecify the jars but it would seem like I could use the dependency
> statement in the project.xml to do this.
>
> Many thanks for your help,
> Kelly Sonderegger
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]