Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to install & configure Maven

How to install & configure Maven in Linux?

Step 1 – Install JAVA 11

Step 2 – Download and Extract Maven to a destination dir.

eg. 

$ sudo yum install wget unzip zip -y
$ cd /opt
$ wget https://mirrors.estointernet.in/apache/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.zip
$ unzip apache-maven-3.8.1-bin.zip

Step 3 – Set Maven PATH

$ export PATH=$PATH:/opt/apache-maven-3.8.1/bin

Step 4 – Verify Maven Installation

$ mvn --version

How to install & configure Maven in Windows?


- Download maven from https://maven.apache.org/download.cgi
- Extract into a directory such as C:\tools\apache-maven-3.8.5-bin
- Add C:\tools\apache-maven-3.8.5-bin\bin into env "path"
- Go to cmd and type $ mvn --version
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)