Create a MAVEN Web project
When creating a new project under Eclipse, select New Maven project,
By default, click Next and use the default configuration as in the "select an archetype" step,
Next, you need to enter the project name, named "Testmavenweb" project, click "Finish" to complete the project creation.
At this point, a Java MAVEN project was created successfully, but not a MAVEN Web project, the structure of the project
After the Java Maven creation is successful, create a Web project, and in the "Select an archetype" step, select "Maven-archetype-webapp" to successfully create a Web project,
Then copy the WebApp folder under the Web project to the Testmavenweb project, where the MAVEN Web project under Eclipse was created successfully, creating a successful MAVEN Web project structure
How to create a MAVEN Web project under Eclipse