Installing Maven

Maven is a Java tool, and therefore, we need to have Java installed to use it. You should have Java on your system already if you're running Jenkins locally, but if not, you can download a JDK for your platform from the following link—version 6.0 or later is required:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Once you've got the Java prerequisite sorted out, download Maven for your platform from the Apache site here:

https://maven.apache.org/download.cgi

Then follow the installation steps for your operating system from this page:

https://maven.apache.org/install.html

On all platforms, the main requirement is to ensure that you have a JAVA_HOME variable in PATH, and that PATH also contains the Maven bin ...

Get Extending Jenkins 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.