I\'m trying to filter a Spring configuration file using Maven filtering. My POM is configured like this:
...
I've tried everything described above without success. The files were filtered and generated correctly at the "m2e-wtp" folder, but for some reason Eclipse was copying files from "target/classes".
Thus, I've changed my pom.xml, changing the destination folder from "m2e-wtp" to "target/classes", like code ahead.
Important: everytime you need to run a maven build on project, you must change the pom in order to build de project.
org.apache.maven.plugins
maven-war-plugin
2.4
false
${project.basedir}/src/main/filters/${build.profile.id}/config.properties
true
${project.basedir}/src/main/resources
${project.basedir}/target/classes
*.properties
*.xml
META-INF/spring/*.xml