安装Maven
当前系统
[root@141 ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
下载
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
安装
mkdir -p /opt/maventar -xzvf apache-maven-3.5.3-bin.tar.gz -C /opt/maven/ln -s /opt/maven/apache-maven-3.5.3 /usr/local/mavenecho 'export M2_HOME=/usr/local/maven' >> /etc/profileecho 'export PATH=$M2_HOME/bin:$PATH' >> /etc/profilesource /etc/profilemvn -v
配置Maven:使用国内镜像
使用阿里镜像,在用户配置文件.m2/settings.xml
中配置:
CN aliyun Central http://maven.aliyun.com/nexus/content/groups/public/ central