Eclipse uses export to fight the war package, resulting in inconsistent files

Source: Internet
Author: User

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

Related Article

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.