Installing Maven

Maven is neither a part of the operating system nor the JDK. It has to be downloaded and installed in a very similar way to Ant. You can download Maven from its official website (https://maven.apache.org/) under the download section. Currently, the latest stable version is 3.5.4. When you download it, the actual release may be different; instead, use the latest stable version. You can download the source or the precompiled version. The easiest way is to download the binary in tar.gz format.

I cannot skip drawing your attention to the importance of checking the download integrity using checksums. I have detailed the way to do it in the section Installing Ant.

After the file is downloaded, you can explode it into a subdirectory ...

Get Java Projects - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.