This problem has been dealt with for a long time.
The system uses velocity to generate message content based on the template
According to customer needs, changed several times the template
But each time the modification, using the form of Export->war to fight the war package, uploaded to the server test, found that the template is still old, and did not change over.
This is very strange, the old files have been changed, how old?
After various analyses, it is found that the cause is the conflict between Eclipse and Pom.
1. The entire Web project is managed in MAVEN form, and the MAVEN structure looks like this:
2. Under normal circumstances, should be src/main/resources inside the template into the war package, but looked at, the final war package inside the template is the same as the contents of src/test inside
So the contents of Main/resource inside Copy to Src/test inside, re-export, problem solving
Workaround found, but why did not find the reason, guess may be eclipse on MAVEN schema support bug
Eclipse uses export to fight the war package, resulting in inconsistent files