Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
This POM file contains all the dependencies which will be downloaded automatically which reduce the manual downloading.
While adding dependencies normally we can forget the dependencies when there are more than xxxx at that time maven will help you.
It contains the groupid,artifactid and version. By using these three it will download the required files automatically.
While you are trying to install maven in terminal on mac os x the steps you need to take are:
1) First we should have command line tools,These can be installed with the help of following command,