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
directory from the download you extracted.
Once you are set up, you should get something roughly comparable to the following when you run java –version
and then mvn –version
—I am also displaying the Java and Maven environment variables here for your...