官网:Maven – Welcome to Apache Maven
1、下载:https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
2、安装:
vi /etc/profile
export MAVEN_HOME=【maven安装路径】
export PATH=$PATH:$MAVEN_HOME/bin
source /etc/profile
3、配置
4、使用
5、安装问题:
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.
如果安装多个java环境,可在maven的启动脚本maven_home/bin/mvn中指定JAVA_HOME:
JAVA_HOME=【java安装路径】