Converting exisitng Web project to Maven Project

If you are using eclipse, converting your existing web project to Maven Project is pretty simple.

Right Click on project-> Configure-> Convert to Maven.

It automatically generates a pom.xml file (Project Object Model). Now you can right click on POM to add dependencies.