Install Maven Linux Mint

1. download maven .tar.gz file
2. unpack it into desired location(e.g /opt/apache-maven)
tar xvzf apache-maven-3.3.9-bin.tar.gz
3. Add maven to Environment Variables, info from here
$ sudo gedit /etc/profile

M2_HOME=/opt/apache-maven-3.3.9
export M2_HOME
M2=$M2_HOME/bin

PATH=$PATH:$M2
export PATH

4.Reload your system wide PATH /etc/profile by typing: ‘source /etc/profile’
5. test installation: $ mvn –version

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: