Configuring Java and Maven in Jenkins

In Jenkins 2, the Global Tool Configuration section has been introduced, which is a good move. All major configurations related to external tools, their locations, and automatic installer tools can be made in this section. Earlier, these configurations were part of Configure System, which used to make that page bit cluttered.

Configuring Java

To configure Java, provide a Name and the JAVA_HOME path, or check Install automatically checkbox:

Configuring Java

Configuring Maven

To configure Maven, download the Maven installer from https://maven.apache.org/download.cgi , and extract it to the directory on your Jenkins virtual machine. ...

Get DevOps for Web Development 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.