Maven published resource files under the Tomcat project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.