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