Hi Chris,

Isn't this for use with war overlays? The way I understood this from the documentation was that if the module you're building depends on the creation of another war in your project, you can use this to combine the two wars, into a single war, excluding whatever you want from the war dependency. But maybe I'm wrong.

Anyways, trying this solution in my case, which is just a single war artifact, doesn't exclude anything, which is expected if I interpreted the documentation correctly. I even tried **/*.jar, and nothing is excluded (which I would expect). Maybe you're using it properly in a war overlay?

Thanks,

J


On 2-Mar-07, at 3:11 AM, Chris Miner wrote:

Hi Julian,

I do something similar for a war build with maven 2.x. Here's my pom snippet:

<build>
    <plugins>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
<dependentWarExcludes>WEB-INF/lib/*.jar</ dependentWarExcludes>
        </configuration>
       </plugin>
    </plugins>
  </build>

Cheers,
Chris

Am Donnerstag, 1. März 2007 18:23 schrieb Julian Wood:
Hi Seetamraju,

Thanks for the suggestions. I tried both patterns you suggested but
neither of them exclude anything at all. In other words, maven-war
still grabs the lib folder from src/main/webapp/WEB-INF and the lib
folder from what it builds in the target dir and combines them.

             <plugin>
                 <artifactId>maven-war-plugin</artifactId>
                 <version>2.0.2</version>
                 <configuration>
                     <excludes>**/WEB-INF/lib</excludes>
                 </configuration>
             </plugin>

Thanks,

J

On 28-Feb-07, at 8:05 PM, Seetamraju Udaybhaskar Sarma wrote:
Try  src/main/webapp/WEB-INF/lib      ---or---   **/WEB-INF/lib
I don't think '*' is allowed within excludes.
I am sure you do not want the LIB subfolder either (in which case
WEB-INF/lib/* is not what you wanna write).

Julian Wood wrote:
<plugin>
  <artifactId>maven-war-plugin</artifactId>
  <configuration>
    <excludes>**/WEB-INF/lib/*</excludes>
  </configuration>
</plugin>

or

<plugin>
  <artifactId>maven-war-plugin</artifactId>
  <configuration>

<warSourceExcludes>WEB-INF/lib/*.*,WEB-INF/classes/**/*.*</
warSourceExcludes>

  </configuration>
</plugin>

--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca


Reply via email to