If you want to use my solution, you would have to put the tags like so:
<build>
<resources>
<resource>
<directory>${basedir}/WebContent</directory>
<excludes>
<exclude>WEB-INF/lib/commons-collections-2.1.jar</exclude>
<exclude>WEB-INF/lib/anttasks-6.0.jar</exclude>
</excludes>
</resource>
</resources>
</build>
I don't know if this will work for you.
_Mang Lau
"Dixit, Sandeep (ProSource Solutions)"
<[EMAIL PROTECTED]>
03/08/2006 03:01 PM
Please respond to
"Maven Users List" <[email protected]>
To
"Maven Users List" <[email protected]>
cc
Subject
RE: How to specify multiple excludes in war-plugin?
I tried your resolution as below:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-2</version>
<configuration>
<warSourceDirectory>JavaSource</warSourceDirectory>
<webappDirectory>WebContent</webappDirectory >
<excludes>
<exclude>WEB-INF/lib/commons-collections-2.1.jar</exclude>
<exclude>WEB-INF/lib/anttasks-6.0.jar</exclude>
</excludes>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
However this doesn't exclude anything? What am I doing wrong?
Thanks,
Sandeep
-----Original Message-----
From: Mang Jun Lau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 2:48 PM
To: Maven Users List
Subject: Re: How to specify multiple excludes in war-plugin?
Please refer to this thread:
http://www.nabble.com/WAR-plugin-in-M2%3A-excludes-not-all-files-t114005
7.html
It could be a bug though.
_Mang Lau
"Dixit, Sandeep (ProSource Solutions)"
<[EMAIL PROTECTED]>
03/08/2006 02:41 PM
Please respond to
"Maven Users List" <[email protected]>
To
"Maven Users List" <[email protected]>
cc
Subject
How to specify multiple excludes in war-plugin?
I am trying to exclude few libraries (.jar) from getting packaged into
war. How do I specify it using <excludes> tag? I tried using comma,
space as well as multiple <excludes> tags. Nothing worked. It is only
able to exclude a single jar. Please advise.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-2</version>
<configuration>
<warSourceDirectory>JavaSource</warSourceDirectory>
<webappDirectory>WebContent</webappDirectory >
<excludes>WEB-INF/lib/commons-collections-2.1.jar,
WEB-INF/lib/anttasks-6.0.jar </excludes>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
Thanks,
Sandeep
------------------------------------------------------------------------
-------------------
***National City made the following annotations
------------------------------------------------------------------------
-------------------
This communication is a confidential and proprietary business
communication.
It is intended solely for the use of the designated recipient(s). If
this
communication is received in error, please contact the sender and delete
this communication.
========================================================================
===================
---------------------------------------------------------------------
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]