How to convert a Maven project into a WebApp

Source: Internet
Author: User

1. Right-click Project Facets, Convert to faceted from
2. Change the version of the Dynamic WEB module
3. Click the further configuration available ..., set the path to the Web. xml file, and enter Src/main/webapp.
Generate Web. XML Deployment Descriptor Auto-generated Web. xml file

4. Click OK

5. Set up Deployment assemblies (Web Deployment Assembly)
6. Open this window in the right-click Project. A deployment Assembly appears in the list on the left, click to enter
7. Delete the two items of test, because tests are used for testing and do not need to be deployed.
8. Set the release of MAVEN's jar package to Lib.
ADD, Java Build Path Entries, Maven Dependencies, Finish

Upon completion there are:
/src/main/webapp/
/src/main/java/web-inf/classes
/src/main/resources/web-inf/classes
Maven Dependencies/web-inf/lib

How to convert a Maven project into a WebApp

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.