Installing
-
2. Downloading Maven
Download Apache Maven 3.x Binaries
-
3. Extracting Maven
Double-Click on Archive and Extract into /tmp.
Or from Shell:tar xvzf apache-maven*.tar.gz -C /tmp/
-
4. Installing Java
Verify that JDK 8+ is Installed on System
javac -version
How to Install Recommended Oracle Java JDK on Mint
-
5. Installing Maven
Installing Maven Binaries
First, we Drop the Tarball:sudo rm /home/[myUser]/Downloads/apache-maven*bin.tar.gz
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Then we Set the SuperUser as Owner:sudo chown -R root:root /home/[myUser]/Downloads/apache-maven*
Finally, to Switch Maven contents:
sudo mv /home/[myUser]/Downloads/apache-maven** /opt/
Again Add Maven Binaries to User Path
nano $HOME/.bashrc
Append:
export PATH=$PATH:/opt/apache-maven-[X.Y.X]/bin
Ctrl+X to Save and Exit from “nano” :)
Load New SetUp:
source $HOME/.bashrc
Finally, Test Maven Installation with:
mvn -v
Contents