Building RESTful Web Services with Spring 5(Second Edition)
上QQ阅读APP看书,第一时间看更新

Apache Maven

While building the Jakarta Turbine project, engineers found that managing the Ant build tool is hard. They needed a simple tool to build the projects with a clear definition that is easy to understand. Their attempt shaped Apache Maven, and the JARs can be shared across several projects in the central place.


More information on Maven can be found at https://maven.apache.org.

Apache Maven was created to support Java project and build management. Also, its simplified definition makes Java developers' lives easy while building and deploying Java projects.

At the time of writing this book, Apache Maven's latest version is 3.5.0, and it can be downloaded from their website: https://maven.apache.org/download.cgi.

Maven 3.3+ requires JDK 1.7 or above. So please make sure of your Java version when you use Maven 3.3.

You can get the binary or source ZIP files (or whatever the desired format for your operating system is) from the preceding link and install Maven on to your computer.

Maven installation can be verified by entering the mvn --version command in your console/command prompt. If it is installed successfully, it will show the following details (only on a Windows operating system):

For clarity, the following image shows a Maven version check performed on Ubuntu: