tags:

views:

20

answers:

0

I have an images folder at src/main/webap/images which I'd like to exclude from my war. Here is my war plugin configuration:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>
      <version>2.0</version>
      <warName>UNAB</warName>
      <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
      <webResources>
       <resource>
          <directory>src/main/webapp/</directory>
          <excludes>
            <exclude>images/*</exclude>
          </excludes>
        </resource>
      </webResources>
    </configuration>
  </plugin>

This isn't working. The images folder winds up in the war. Any troubleshooting tips for me?