First you create a maven project in eclipse
you can create it with the following way:
Go to New --> Other --> Select Maven Project --> Give group id and artifact id --> Finish
Note : Both Artifact Id and Group Id should be same.
Now you can see the following structure.
Now in the pom.xml you need to add the dependencies:
//pom.xml