下载

cd /opt
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar zxvf apache-maven-3.6.3-bin.tar.gz

vi /etc/profile

export MAVEN_HOME=/opt/apache-maven-3.6.3
export PATH=MAVEN_HOME/bin:PATH

test

[root@test opt]# source /etc/profile
[root@test opt]# mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache-maven-3.6.3
Java version: 1.8.0_241, vendor: Oracle Corporation, runtime: /opt/jdk1.8.0_241/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-862.11.6.el7.x86_64", arch: "amd64", family: "unix"

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code