1、下载maven
http://maven.apache.org/download.cgi
2、上传maven到centos
3、解压文件
tar -zxvf apache-maven-3.8.1-bin.tar.gz
4.配置maven
vi /etc/profile
在配置文件配置
export MAVEN_HOME=[解压的目录]
export PATH=$MAVEN_HOME/bin:$PATH
配置文件生效
source /etc/profile
5.查看maven
mvn -version
1159

被折叠的 条评论
为什么被折叠?



