Install eclipse
Right click→new→Maven Project

You will see below this, click Next
Select maven-archetype-webapp, and click next

Put group id and artifact id, and click Finish
Group id : It uniquely identifies your project among all. It may be like com.companyname
Artifact id : Like project name

We getting below error.
“javax.servlet.http.HttpServlet” was found in java build path.

Set target run time as Apache tomcat .
right click on project →poperties→target runtimes

Right click on project -> Run as -> Maven build

Below image

Deploy application to tomcat server and run it.
You will see this
