--- franz see <[EMAIL PROTECTED]> wrote:
>
>
>
> Thomas Lindback wrote:
> >
> > I am sure this has been discussed earlier but I
> have
> > not found any info at all. I have searched alot.
> >
> > I am trying to convert a piece from Maven 1 to
> Maven 2
> > but have no idea how to do it.
> >
> > In maven.xml I have something like this.
> >
> > <j:forEach var="lib" items="${pom.artifacts}">
> > <j:set var="dep" value="${lib.dependency}"/>
> > <copy file="${lib.path}"
> > todir="${maven.build.dir}/zip"/>
> > </j:forEach>
> >
> > Basically I want to copy the jar files I have in
> the
> > dependencies to a folder. How do I do it in Maven
> 2?
> >
> > If I use antrun-plugin in Maven 2 I get from
> > ${dependencies} a list of dependencies but how to
> use
> > that in ant?
> >
> > Same thing if I write a plugin I get a list of
> > Dependencies but how to get the jar file location
> from
> > a Dependency. A Dependency contains only groupId,
> > artifactId, version and so on. Anyone has an
> idea??
> >
> > /Tom
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
>
> Good day to you, Thomas,
>
> To copy the dependencies to a specifc location, you
> can use the
> maven-dependency-plugin. You may want to take a look
> at [1] for more info
> about it.
>
> However, [1] is an unfinished revision of the
> maven-dependency-plugin
> documentation, and it's still being reviewed. Please
> feel free to give us
> your comments so that we can improve the
> documentation.
>
> Thanks,
> Franz
>
> [1]
>
http://people.apache.org/~aramirez/maven-dependency-plugin/examples/copy-direct-dependencies.html
> --
> View this message in context:
>
http://www.nabble.com/From-jelly-in-maven.xml-to-pom.xml-tf2317291.html#a6445677
> Sent from the Maven - Users mailing list archive at
> Nabble.com.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
Excellent! Thanks alot for the fast reply. Just what I
was looking for.
But..... there is always a but right?
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Gives me:
[INFO] The plugin
'org.apache.maven.plugins:maven-dependency-plugin'
does not exist or no valid version could be found
and a BUILD ERROR
Google gave me:
<groupId>org.codehaus.mojo</groupId>
<artifactId>dependency-maven-plugin</artifactId>
and that works.
/Tom
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]