centos安装配置maven

   

下载安装包

cd /usr/local
wget https://mirrors.tuna.tsinghua.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=/usr/local/apache-maven-3.6.3
    export PATH=$MAVEN_HOME/bin:$PATH
source /etc/profile

检查

mvn -version

发表评论