暗中观察

CentOS 安装 maven
前提:安装了jdk1.7+环境,详见文章1.下载 : http://maven.apache.org/downlo...
扫描右侧二维码阅读全文
11
2018/08

CentOS 安装 maven

前提:安装了jdk1.7+环境,详见文章

1.下载 : http://maven.apache.org/download.cgi

  wget http://mirrors.shu.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip

2.解压

  tar -zxvf apache-maven-3.5.4-bin.zip -C /usr/local/
  mv apache-maven-3.5.4 maven-3.5.4

3.配置环境变量

  vi /etc/profile
  #加入以下:
  #set maven env
  export MAVEN_HOME=/usr/local/maven-3.5.4
  export PATH=$PATH:$MAVEN_HOME/bin

4.使设置生效

  source /etc/profile
Last modification:August 11th, 2018 at 07:22 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment