Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

melvincabatuan commented Feb 19, 2016

thanks!

@zhenglaizhang
Copy link

zhenglaizhang commented Feb 25, 2016

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!

@matanster
Copy link

matanster 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

aertoria commented Jun 27, 2016

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