Creat a maven project

Install eclipse

Right click→new→Maven Project

螢幕快照 2017-02-22 11.38.03

You will see below this, click Next螢幕快照 2017-02-22 11.38.15

Select maven-archetype-webapp, and click next
螢幕快照 2017-02-22 11.38.24

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

螢幕快照 2017-02-22 11.38.56

We getting below error.
“javax.servlet.http.HttpServlet” was found in java build path.
螢幕快照 2017-02-22 11.41.14

Set target run time as Apache tomcat .
right click on project →poperties→target runtimes
螢幕快照 2017-02-22 11.42.07

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

螢幕快照 2017-02-22 11.44.45

Below image

螢幕快照 2017-02-22 11.45.05

Deploy application to tomcat server and run it.

You will see this
螢幕快照 2017-02-22 11.46.55