"Allen, Daniel" <[EMAIL PROTECTED]> writes: > I'm building a web application (packaging WAR), and I need to run the > web.xml file through a filter to set certain configutation values. I > tried adding it to a <resource> tag, but that causes Maven to make a > copy of it and put it in WEB-INF/classes subdirectory with all of the > rest of the resources. I tried setting <targetPath> to WEB-INF, but then > Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of the > two. I expect that this is because the phase where the the <resources> > tag is processed is before the phase where the WAR file (and thus the > WEB-INF directory I wish to target) is created. I'm guessing the > generate-sources and package phases, respectively? >
Hello, The war plugin has configuration options for defining and filtering webResources. Check http://maven.apache.org/plugins/maven-war-plugin HTH, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]