I am trying to add some filtering to the application context file, which is located in the WEB-INF directory.
I have a file to filter out (xmlgateway-context.xml) in the / src / main / resources folder.
I have properties files (config-e05.properties) in the src / main / filters folder
And my POM is configured as follows:
<profiles> <profile> <id>e04</id> <properties> <targetenv>e04</targetenv> </properties> </profile> <profile> <id>e05</id> <properties> <targetenv>e05</targetenv> </properties> </profile> </profiles> <build> <filters> <filter>src/main/filters/config-${targetenv}.properties</filter> </filters> <resources> <resource> <targetPath>WEB-INF</targetPath> <filtering>true</filtering> <directory>src/main/resources</directory> </resource> </resources> </build>
This will be correctly installed by mvn, but when I open the output file of the war, I expected the xmlgateway-context.xml file to be in the / WEB -INF directory, but it falls into the folder / WEB-INF / classes / WEB-INF.
How can I get this file in the right place.
Alternatively, I can put the application context in another place and refer to it there.
Xetius Nov 23 '09 at 10:48 2009-11-23 10:48
source share