I\'m trying to filter a Spring configuration file using Maven filtering. My POM is configured like this:
...
I had a similar problem with filtering the web.xml. I solved the problem by reimporting the whole project in eclipse.
The reason was a corrupt /.settings/org.eclipse.wst.common.component file. In this file the order of the files copied to the local web servers deploy directory is defined. For example:
If the web.xml or application.xml exists in several directories it will be taken from the first directory found. Therefore its important that
is the first entry.
You will find more informations at http://wiki.eclipse.org/M2E-WTP_FAQ in the section "What is this web resources folder?"