The Linux distribution used in this book is Ubuntu 10.04. If you use any other Linux distribution, the steps should nevertheless remain similar. Apache Maven is a command-line tool; it just needs to be extracted and configured with the operating system’s environment.
There is a chance Apache Maven may have been pre-installed on your machine. Verify that Maven isn’t already installed before proceeding.
See the recipe Verifying the Maven installation in this chapter
A prerequisite for working with Maven is the availability of the Java Development Kit. Make sure the JDK is available before proceeding. This can be verified by running the command line:
It should give the following output: ...