I have a maven pom file for an open source project. This pom file has all the info like what other jars it depends on etc. I installed maven. Created a dir samprj and copied the
Try out their getting started guide. It has a lot of good examples:
http://maven.apache.org/guides/getting-started/