Skip to content

Instantly share code, notes, and snippets.

@stephanetimmermans
Last active November 16, 2020 09:04
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save stephanetimmermans/8fa47ddfe1afede6e310 to your computer and use it in GitHub Desktop.
Save stephanetimmermans/8fa47ddfe1afede6e310 to your computer and use it in GitHub Desktop.
Install Maven3 on Unbuntu 14.04
#sudo apt-get remove maven2
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
sudo apt-get update
sudo apt-get install maven3
#If you encounter this:
#The program 'mvn' can be found in the following packages:
# * maven
# * maven2
#Try sudo apt-get install <selected-page>
#Just add those lines in /etc/profile
export M2_HOME=/usr/share/maven3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
@rehnen
Copy link

rehnen commented Feb 5, 2016

Thank you!

@melvincabatuan
Copy link

thanks!

@zhenglaizhang
Copy link

thanks, very helpful!

@garciav
Copy link

garciav commented Mar 22, 2016

thanks!

@jonespm
Copy link

jonespm commented Mar 29, 2016

FYI, it looks like that ppa hasn't been updated in 2 years.

There's this other one here if you updated line 2. This form also downloads the gpg key so it doesn't complain about untrusted packages.

sudo add-apt-repository ppa:andrei-pozolotin/maven3

Thanks for the tip!

@matanox
Copy link

matanox commented Apr 9, 2016

What are the integrity guarantees inherent in using such rather private ppa's?

@Denkneb
Copy link

Denkneb commented May 26, 2016

sudo apt-get purge maven maven2 maven3
sudo apt-add-repository ppa:andrei-pozolotin/maven3
sudo apt-get update
sudo apt-get install maven3

Wery well!

@aertoria
Copy link

Last comment is correct. validated Jun27 on ubuntu

@uddhavb
Copy link

uddhavb commented Jan 31, 2018

thank you!!!

@jyKang2
Copy link

jyKang2 commented Jun 24, 2018

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment