Marc,
Thanks, this looks like exactly what I need. Though, I'm afraid I'm going to
bother you with a plugin-writing-newbie question because I can't get it
running, even after reading the following :
http://maven.apache.org/reference/scripting.html
http://maven.apache.org/using/developing-plugins.html
http://maven.apache.org/reference/user-guide.html#maven_xml
Here is what I've done :
1. Created a maven.xml file in my project root dir :
<project xmlns:ant="jelly:ant" xmlns:j="jelly:core">
<goal name="deps">
<j:forEach var="lib" items="${pom.artifacts}">
<ant:copy todir="${maven.dist.bin.assembly.dir}/lib" file="${lib.path}"/>
</j:forEach>
</goal>
</project>
2. Launched "m2 -e deps" from the project root dir, which gratified me with :
Invalid task 'deps': you must specify a valid lifecycle phase, or a goal in the
format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
I certainly have missed something... Is it something peculiar to m2 ?
TIA,
Yann
--- Marc Attiyeh <[EMAIL PROTECTED]> a écrit :
> You can write your own goal that copies dependencies out of the repo.
>
> <goal name="copy-deps">
> <j:forEach var="lib" items="${pom.artifacts}">
> <j:set var="dep" value="${lib.dependency}"/>
> <ant:copy todir="${maven.dist.bin.assembly.dir}/lib"
> file="${lib.path}"/>
> </j:forEach>
> </goal>
>
> -marc
>
> -----Original Message-----
> From: Yann Le Du [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 21, 2005 10:06 AM
> To: Maven User List
> Subject: [m2] Retrieving dependencies JARs into a directory
>
> Hi,
>
> When you call war:war, all the dependencies (including transitive) JARs are
> put
> in target/root/WEB-INF/lib. Is there a way to do only this part - that is,
> retrieve all the dependency JARs into a directory - with an existing plugin ?
> Or should I write one of my own ?
>
> Regards,
>
> Yann
>
>
>
>
>
>
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> 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]
>
>
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]