You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sebastien Brunot <sb...@ilog.fr> on 2006/11/08 18:22:29 UTC
dependency plugin
Hi all,
is it possible to parameterize the dependency plugin unpack goal so that
it uses a pom <dependencies> section as input instead of an
<artifactItems> list ?
Thanks for your help,
Sebastien
Re: dependency plugin
Posted by Dan Tran <da...@gmail.com>.
not possible.
I have similar usecase and ended up to use artifactItems. Btw
in artifactItem you dont need to define version, it will be looked in your
dependency list.
-D
On 11/9/06, Sebastien Brunot <sb...@ilog.fr> wrote:
>
> I think I didn't manage to express clearly my concern: I have a pom
> artifact that declare a list of (many) dependencies (let's name it the
> optimized-3dparties-dependencies pom). In another module (actually an
> EAR module), I want to pack the list of artifact declared in
> optimized-3dparties-dependencies and build a single jar that contains
> everything. I don't want transitivity on the dependencies declared in
> optimized-3dparties-dependencies. So I was wondering how to do this
> without re declaring my dependencies in an <artifactItems> tag.
>
> Do you think it is possible with the existing plugins ?
>
> Thanks for your help,
>
> Sebastien
>
> -----Original Message-----
> From: Dan Tran [mailto:dantran@gmail.com]
> Sent: Thursday, November 09, 2006 11:17 AM
> To: Maven Users List
> Subject: Re: dependency plugin
>
> artifactItem does not support transitive dependencies. so no need for
> exclusion.
> But you need to specify every item.
>
> -D
>
>
> On 11/9/06, Sebastien Brunot <sb...@ilog.fr> wrote:
> >
> > In fact I've already have a pom that describes the dependencies, as
> > they are shared by many modules. Using <artifactItems> on this pom
> > with unpack-dependencies will help me, except that I don't want the
> > transitive dependencies from the pom dependencies to be copied... Can
> > I use some sorts of <exclusions> tags with <artifactItem> ?
> >
> > Thanks for your help,
> >
> > Sebastien
> >
> > -----Original Message-----
> > From: Dan Tran [mailto:dantran@gmail.com]
> > Sent: Wednesday, November 08, 2006 7:18 PM
> > To: Maven Users List
> > Subject: Re: dependency plugin
> >
> > The main purpose of <artifactItems> is so that we dont need to use
> > dependencies elements.
> >
> > perhaps, you need
> > http://maven.apache.org/plugins/maven-dependency-plugin/unpack-depende
> > nc
> > ies-mojo.html
> >
> > -D
> >
> >
> >
> > On 11/8/06, Sebastien Brunot <sb...@ilog.fr> wrote:
> > >
> > > Hi all,
> > >
> > > is it possible to parameterize the dependency plugin unpack goal so
> > > that it uses a pom <dependencies> section as input instead of an
> > > <artifactItems> list ?
> > >
> > > Thanks for your help,
> > >
> > > Sebastien
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: dependency plugin
Posted by Sebastien Brunot <sb...@ilog.fr>.
I think I didn't manage to express clearly my concern: I have a pom
artifact that declare a list of (many) dependencies (let's name it the
optimized-3dparties-dependencies pom). In another module (actually an
EAR module), I want to pack the list of artifact declared in
optimized-3dparties-dependencies and build a single jar that contains
everything. I don't want transitivity on the dependencies declared in
optimized-3dparties-dependencies. So I was wondering how to do this
without re declaring my dependencies in an <artifactItems> tag.
Do you think it is possible with the existing plugins ?
Thanks for your help,
Sebastien
-----Original Message-----
From: Dan Tran [mailto:dantran@gmail.com]
Sent: Thursday, November 09, 2006 11:17 AM
To: Maven Users List
Subject: Re: dependency plugin
artifactItem does not support transitive dependencies. so no need for
exclusion.
But you need to specify every item.
-D
On 11/9/06, Sebastien Brunot <sb...@ilog.fr> wrote:
>
> In fact I've already have a pom that describes the dependencies, as
> they are shared by many modules. Using <artifactItems> on this pom
> with unpack-dependencies will help me, except that I don't want the
> transitive dependencies from the pom dependencies to be copied... Can
> I use some sorts of <exclusions> tags with <artifactItem> ?
>
> Thanks for your help,
>
> Sebastien
>
> -----Original Message-----
> From: Dan Tran [mailto:dantran@gmail.com]
> Sent: Wednesday, November 08, 2006 7:18 PM
> To: Maven Users List
> Subject: Re: dependency plugin
>
> The main purpose of <artifactItems> is so that we dont need to use
> dependencies elements.
>
> perhaps, you need
> http://maven.apache.org/plugins/maven-dependency-plugin/unpack-depende
> nc
> ies-mojo.html
>
> -D
>
>
>
> On 11/8/06, Sebastien Brunot <sb...@ilog.fr> wrote:
> >
> > Hi all,
> >
> > is it possible to parameterize the dependency plugin unpack goal so
> > that it uses a pom <dependencies> section as input instead of an
> > <artifactItems> list ?
> >
> > Thanks for your help,
> >
> > Sebastien
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency plugin
Posted by Dan Tran <da...@gmail.com>.
artifactItem does not support transitive dependencies. so no need for
exclusion.
But you need to specify every item.
-D
On 11/9/06, Sebastien Brunot <sb...@ilog.fr> wrote:
>
> In fact I've already have a pom that describes the dependencies, as they
> are shared by many modules. Using <artifactItems> on this pom with
> unpack-dependencies will help me, except that I don't want the
> transitive dependencies from the pom dependencies to be copied... Can I
> use some sorts of <exclusions> tags with <artifactItem> ?
>
> Thanks for your help,
>
> Sebastien
>
> -----Original Message-----
> From: Dan Tran [mailto:dantran@gmail.com]
> Sent: Wednesday, November 08, 2006 7:18 PM
> To: Maven Users List
> Subject: Re: dependency plugin
>
> The main purpose of <artifactItems> is so that we dont need to use
> dependencies elements.
>
> perhaps, you need
> http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependenc
> ies-mojo.html
>
> -D
>
>
>
> On 11/8/06, Sebastien Brunot <sb...@ilog.fr> wrote:
> >
> > Hi all,
> >
> > is it possible to parameterize the dependency plugin unpack goal so
> > that it uses a pom <dependencies> section as input instead of an
> > <artifactItems> list ?
> >
> > Thanks for your help,
> >
> > Sebastien
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: dependency plugin
Posted by Sebastien Brunot <sb...@ilog.fr>.
In fact I've already have a pom that describes the dependencies, as they
are shared by many modules. Using <artifactItems> on this pom with
unpack-dependencies will help me, except that I don't want the
transitive dependencies from the pom dependencies to be copied... Can I
use some sorts of <exclusions> tags with <artifactItem> ?
Thanks for your help,
Sebastien
-----Original Message-----
From: Dan Tran [mailto:dantran@gmail.com]
Sent: Wednesday, November 08, 2006 7:18 PM
To: Maven Users List
Subject: Re: dependency plugin
The main purpose of <artifactItems> is so that we dont need to use
dependencies elements.
perhaps, you need
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependenc
ies-mojo.html
-D
On 11/8/06, Sebastien Brunot <sb...@ilog.fr> wrote:
>
> Hi all,
>
> is it possible to parameterize the dependency plugin unpack goal so
> that it uses a pom <dependencies> section as input instead of an
> <artifactItems> list ?
>
> Thanks for your help,
>
> Sebastien
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency plugin
Posted by Dan Tran <da...@gmail.com>.
The main purpose of <artifactItems> is so that we dont need to use
dependencies elements.
perhaps, you need
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html
-D
On 11/8/06, Sebastien Brunot <sb...@ilog.fr> wrote:
>
> Hi all,
>
> is it possible to parameterize the dependency plugin unpack goal so that
> it uses a pom <dependencies> section as input instead of an
> <artifactItems> list ?
>
> Thanks for your help,
>
> Sebastien
>
>