This is a very old bug in the war plugin (circa Nov I think?). It has been fixed forever in the svn version, but no recent release of the war plugin has occurred. Your best bet is to build a version yourself to make this work. Anyone have any idea when war is going to be released? I've had to run a private version for many months now.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Friday, February 17, 2006 2:12 PM To: Maven Users List Subject: Re: WAR plugin in M2: excludes not all files If I have <excludes>**/lib/*.jar</excludes>, no files go into my war. If I have <excludes><exclude>**/lib/*.jar</exclude></excludes> all the dependent jars go into my war. Putting two <exclude> sections under the <excludes> doesn't make it work. Is there some other stuff you have to put in the pom to make it work? -- Lee Meador On 2/17/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > > Actually, multiple excludes do work. You should have the following > snippet: > > <excludes> > <exclude>WEB-INF/lib/geronimo-spec*.jar</exclude> > <exclude>WEB-INF/lib/junit*.jar</exclude> > </excludes> > > > > _Mang Lau > > > > > > Tim Davies <[EMAIL PROTECTED]> > 02/17/2006 06:07 AM > Please respond to > "Maven Users List" <[email protected]> > > > To > Maven Users List <[email protected]> cc > > Subject > Re: WAR plugin in M2: excludes not all files > > > > > > > I believe that there is a bug which means that multiple excludes will > not work but a single one will. Im afraid I cant remember where I read > about this as it was a while ago that I came across it. > > > > Martin Goldhahn wrote: > > Hi! > > I'm using Maven 2.0.1 > > I have the following snippet in my pom.xml: > > > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-war-plugin</artifactId> > > <configuration> > > <excludes>WEB-INF/lib/geronimo-spec*.jar, > > WEB-INF/lib/junit*.jar</excludes> > > </configuration> > > </plugin> > > > > This doesn't seem to work, according to the doc it should. How do I > > tell the plug-in the exclude both my JUnit files and the Geronimo-spec files. > > I tried regexps, and the warSourceExcludes tag instead of the > > excludes tag. The result is the same. > > > > Is this a bug or am I doing something wrong? > > > > Martin > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > Tim Davies > Analyst Developer > > KTS PLC: Service you can bank on > 8th Floor, Finsbury Tower, > 103-105 Bunhill Row, > London EC1Y 8LZ > tel: +44 (0)20 7256 2300 > fax: +44 (0)20 7256 2301 > > email: [EMAIL PROTECTED] > web: http://www.ktsplc.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
