In my development environment i use tomcat with my exploded war in
/src/main/webapp.

Within this directory apart from the contents of WEB-INF i have jsp's,
htmls, gifs, jpgs.

In production i use separate application and web servers.

When i generate my war to export to my application server in my production
environment i don't want the htmls, gifs, jpgs etc to be copied.

I have tried creating a resource in the plugin properties in my pom.xml and
excluding certain static files, but it has not  worked. The /src/main/webapp
folder is always copied entirely to my war each time that i build it.

Here is the code that i have tried

           <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-war-plugin</artifactId>
              <version>2.0</version>
              <configuration>
                <webResources>
                  <resource>
                    <directory>src/main/webapp</directory>
                    <excludes>
                        <exclude>**/*.jsp</exclude>
                        <exclude>**/*.gif</exclude>                     
                    </excludes>
                  </resource>
                </webResources>
               </configuration>
             </plugin>

All help would be apreciated.


-- 
View this message in context: 
http://www.nabble.com/Separate-static-content-in-war-tf1981030.html#a5436334
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to