windows 下安装 maven
https://blog.csdn.net/TaylorY/article/details/139901632
maven 配置
https://blog.csdn.net/TaylorY/article/details/139901670
安装步骤
1.获取maven,具体参考maven官网
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
2.如果没有wget
yum install wget
3.新建maven目录
mkdir /usr/local/maven
4.解压maven
tar -xvf apache-maven-3.5.3-bin.tar.gz
5.放到刚刚创建的文件夹下
mv apache-maven-3.5.3-bin /usr/local/maven/
6.修改/etc/profile 环境变量配置
vi /etc/profile
7.添加环境变量
export MAVEN_HOME=/usr/local/maven/apache-maven-3.5.3
export PATH=$PATH:$MAVEN_HOME/bin
8.刷新环境变量
source /etc/profile
9.检测是否安装成功
mvn -v