We are in process of migrating our project from Ant to Maven. While doing this migration we are facing difficulties in finding dependencies between jars that are used in Ant. I just want to know main jars which are needed to mention in `pom.xml` and the remaining jars will be automatically downloaded.

In short I want to know how to find dependecies amongst JAR files used in our project.