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]

Reply via email to