On Wed, Mar 5, 2008 at 6:16 AM, Saxena, Sandeep < [EMAIL PROTECTED]> wrote:
> Thanks Upul. But it does not copy all transitive dependencies from a > list. > I want something like I give a list of 10 artifacts which may or may not > be > In the Project's POM and I want all transitive dependencies for these 10 > I think you will need to separate your concerns. When they are in the project's POM you should use copy-dependencies, when not in the project's POM you should use copy. If you have both, you will need to use both. > > Artifacts to be copied in a folder of my assembly. > > Thanks, > Sandeep. > > -----Original Message----- > From: Upul Godage [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 11:37 AM > To: Maven Users List > Subject: Re: dependency-copy > > I think assembly plugin does this. Here all the dependencies are copied > to a > lib directory in the final release. > http://maven.apache.org/plugins/maven-assembly-plugin/howto.html > > <assembly> > <id>bin</id> > > <dependencySets> > <dependencySet> > <outputDirectory>lib</outputDirectory> > </dependencySet> > </dependencySets> > </assembly> > > Hope this helps. > > Upul > > > On Wed, Mar 5, 2008 at 11:20 AM, Saxena, Sandeep < > [EMAIL PROTECTED]> wrote: > > > I want to copy all transitive dependencies for a list of artifacts in > my > > assembly. > > If I use "dependency: copy" with a list of artifacts I just get all > the > > jars defined > > In my list and not transitive dependencies. > > > > And if I use dependency: copy-dependencies, it takes all the artifacts > > from my project's POM > > Instead of taking a list of artifacts. > > > > To make it clear my project depends on three artifacts A, B and C but > I > > want to copy all the > > Transitive dependencies of another artifact D in a folder of my > > assembly. > > > > Any clues? > > > > Regards, > > Sandeep. > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >