No luck.  That appears to have no effect at all.  I end up with all the jars, 
those from source control and those from dependencies. 

K.C.

-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 01, 2005 3:39 PM
To: Maven Users List
Subject: Re: [m2] How to exclude WEB-INF/lib/*.jar without excluding
dependent jars?


try

<excludes>
  <exclude>WEB-INF/lib/*.jar</exclude>
</excludes>

On 11/2/05, KC Baltz <[EMAIL PROTECTED]> wrote:
> I'm in the process of converting a webapp from Ant builds to Maven2 builds 
> and I'm running into a hitch with the packaging.  When I first built the 
> webapp, it put duplicate jars in my WEB-INF/lib since they exist there in my 
> source directory and it also included the jars defined in my pom 
> dependencies.  I tried adding
> <excludes>WEB-INF/lib/*.jar</excludes> to my war plugin configuration, but 
> then I ended up with no jars in my war file.
>
> I'd rather not delete the jars at the moment since I'm still doing parallel 
> development with Ant.  Is there a way to accomplish this or am I wasting time 
> trying to make M2 do something it really shouldn't?
>
> K.C.
>
>

---------------------------------------------------------------------
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