Problem: There are hibernate resource files in the project, Src/main/java and src/main/resources have these files, and errors were found when starting the project. But the Src/main/java has been modified,
Check tomcat under did not modify, the release or src/main/resources files, so I need to look at the MAVEN release mechanism,
Here's my guess, but I think it's right. The first thing to publish is to look at the deployment Assembly in the project. Found Src/main/java and Src/main/resources, both of which were released.
So the release should also have the order, Src/main/java released after the release of Src/main/resources, so that the Src/main/java to cover the.
Oneself also passed the test, will Src/main/java and src/main/resources in a file of the same name, will delete in Src/main/resources, retain later, found in Tomcat still have this file, and publish the time
As follows. Note that there is no mechanism to configure the deployment Assembly, which need to be published, is based on this configuration. After the first release, the second publication, and there will be a case of overwriting. (This question puzzled all morning)
Maven published resource files under the Tomcat project