maven安装

  • 2018-07-19
  • 浏览 (1305)

maven的安装

一、下载解压
wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz

tar -zxvf apache-maven-3.5.4-bin.tar.gz

mv apache-maven-3.5.4 /usr/local/maven

cd /usr/local/maven/

二、配置
编辑/etc/profile,末尾添加:
export M2_HOME=/usr/local/maven
export PATH=$PATH:$M2_HOME/bin

source /etc/profile

三、查看版本
mvn -v

0  赞