ubuntu安装maven

"版本3.3.9"

Posted by Jht on September 6, 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

配置M2_HOME

dpkg -L mvn #显示安装目录
#配置环境变量
export M2_HOME=/usr/share/maven