Re: Separate static content in war
Thanks for the tip Denis. I'm working in Maven 2 and found an even easier way... warSourceExcludes was exactly what i was looking for. This is the relavant build entry in my pom.xml org.apache.maven.plugins maven-war-plugin 2.0 ${prop.warSourceExcludes} The propertty ${prop.warSourceExcludes} is defined depending on my environement (development or production). -- View this message in context: http://www.nabble.com/Separate-static-content-in-war-tf1981030.html#a5472639 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Separate static content in war
maxmil wrote: > > 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. > Try changing the property: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#warSourceDirectory to an empty directory. By default, all ressources from the webapp directory are copied (without filtering), and your extras webRessource configuration is added to the war Denis. -- View this message in context: http://www.nabble.com/Separate-static-content-in-war-tf1981030.html#a5463278 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Separate static content in war
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 org.apache.maven.plugins maven-war-plugin 2.0 src/main/webapp **/*.jsp **/*.gif 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]