In fact, the dependencies I don't want in the lib directory are the one
obtained because of the transitivity mechanism. So I want all
dependencies included, but not the one they might have themselves (and I
may not have access to the POM of those dependencies to set their scope
to provided).

Sebastien

-----Original Message-----
From: Martin Vysny [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:44 PM
To: Maven Users List
Subject: RE: Transitive dependecies

On Tue, 2006-11-07 at 17:27 +0100, Sebastien Brunot wrote:
> Hi Wendy,
> 
> Are you trying to tell me that the feature I'm asking about does not 
> exists in maven 2 (inheriting dependencies from a pom without 
> transitivity, but with a scope that makes them copied in WEB-INF/lib 
> when I'm working on a war project) ?
> 

Try to define those dependencies you *don't* want to appear in the lib
directory with scope 'provided'. Dependency with 'provided' scope is
defined as being provided by the environment (for example by the JEE
server).

> Sebastien
> 
> -----Original Message-----
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 07, 2006 5:18 PM
> To: Maven Users List
> Subject: Re: Transitive dependecies
> 
> On 11/7/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
> 
> > transitive dependencies can be a real pain when you have a lot of 
> > external dependencies in your project. Using <exclusions> tags is a 
> > tedious operation in this case, so I was wondering if a quicker way 
> > exists...
> 
> Having to use a lot of exclusions generally means that the poms are 
> broken.  (For example, things that should be marked optional, aren't.)
> 
> What dependencies are causing problems?
> 
> --
> Wendy
> 
> ---------------------------------------------------------------------
> 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]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to