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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to