Sorry, my bad, I did not notice that dependency:copy does not have the
option for transitive dependencies that copy-dependencies has

Well I would refactor, have a module that has all the stuff you want as it's
dependencies and use copy-dependencies to copy them, then archive them up
into a zip or such. Then use unpack-dependencies on this zip in the module
where you want them

-Stephen

On Wed, Mar 5, 2008 at 8:53 AM, Saxena, Sandeep <
[EMAIL PROTECTED]> wrote:

> I did not get this. They are not in my projects POM. If I use
> Copy it just copies the artifacts in the list and not transitive
> Dependencies.
>
>
>
> -----Original Message-----
> From: Stephen Connolly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2008 2:21 PM
> To: Maven Users List
> Subject: Re: dependency-copy
>
> 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]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to