MacBook|MacBook Linux安装Maven

MacBook Linux安装Maven
【MacBook|MacBook Linux安装Maven】官方下载地址: https://maven.apache.org/down...
官方下载对应的版本 bin.tar.gz包

#解压 tar -zxvf xxx.tar.gz #增加环境变量 MacBook我用的是zsh,Linux的配置文件/etc/profile vim ~/.zshrc #最后加入 export MVN_HOME=/Users/liang/software/apache-maven-3.2.5 export PATH=$MVN_HOME/bin:$PATH#使配置生效 source ~/.zshrc#查看maven版本 mvn -version #显示如下 Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00) Maven home: /Users/liang/software/apache-maven-3.2.5 Java version: 1.8.0_171, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

    推荐阅读