Maven 3.x Mint 19 - Installing
-
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
Contents