I want to click project.version from maven in appicationContext.xml as follows,
<mvc:resources mapping="/static/${project.version}/**" location="/static/"/>
In pom.xml, I configured the maven filter as follows
<resources>
<resource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<filtering>true</filtering>
<includes>
<include>**/applicationContext.xml</include>
</includes>
</resource>
</resources>
The filter works correctly, but applicationContext.xml is moved to the class folder in the destination directory. I want this in the WEB-INF directory. Want to have dynamic applicationContext.xml to iterate over cache for static resources
Configuration: using Spring 3.2.xxx
source
share