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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access