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