concept Maven in category apache thrift

This is an excerpt from Manning's book Programmer's Guide to Apache Thrift.
Maven is the counterpoint to Ant. Maven uses convention over configuration and provides complete application lifecycle management, whereas Ant focuses on imperative build automation. For example, with Ant you must configure the directory to build, while with Maven a standard project directory is defined by convention. On the life-cycle front, Maven includes a broader set of features, including a comprehensive dependency resolution system, and a standard central repository for JAR files. Ant focuses on build automation, leaving dependency management up to a sister tool called Ivy. Both tools work well with Apache Thrift.
Maven defines projects within a standard pom.xml file. Predefined targets perform compilation and packaging. Maven’s ability to resolve dependencies dynamically by downloading Java libraries makes it convenient for projects that use many third-party libraries. Java projects using Apache Thrift can automatically download the desired Apache Thrift JAR files from the Maven 2 Central Repository by supplying the correct dependency element in the Maven pom.xml.
To build the simple RPC client and server with Maven, we need to move our source files into the standard Maven project structure. You can open/import a Maven project using any of the major Java IDEs, including NetBeans, Eclipse, and IntelliJ IDEA.
To reorganize our simple RPC project to suit Maven, we need to create a project directory with a pom.xml file. Next we need a src/main/java directory under our project folder to host our .java files. In addition, we need to create a src/main/thrift directory to host our IDL source, as shown in the following command line session: