Centos7安装Maven

1.下载安装文件

[root@zengrui kotlin]# wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

2.解压安装

tar -zxvf apache-maven-3.3.9-bin.tar.gz
mv apache-maven-3.3.9 maven

3.配置环境变量

vim /etc/profile
# 在末尾添加以下配置
M2_HOME=/usr/local/maven
export PATH=${M2_HOME}/bin:${PATH}
source /etc/profile

4.检验maven是否安装成功

mvn -v

5.阿里云仓库

  <mirrors>
    <mirror>
      <id>alimavenid>
      <name>aliyun mavenname>
      <url>http://maven.aliyun.com/nexus/content/groups/public/url>
      <mirrorOf>centralmirrorOf>        
    mirror>
  mirrors>

6.jdk8




jdk-1.8

true
1.8


1.8
1.8
1.8



你可能感兴趣的:(JavaWeb,Linux)