MAC系统 - 安装maven
一、下载
二、解压
/Users/wwwei/tool/maven/apache-maven-3.6.3
三、配置环境变量
vim ~/.bash_profile
export M2_HOME="/Users/wwwei/tool/maven/apache-maven-3.6.3" export PATH="$M2_HOME/bin:$PATH"
source ~/.bash_profile
四、验证
mvn -v
wwwei@P_PPWEIWANG-MB0 ~ % mvn -v Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /Users/wwwei/tool/maven/apache-maven-3.6.3 Java version: 1.8.0_271, vendor: Oracle Corporation, runtime: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home Default locale: zh_CN, platform encoding: UTF-8 OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac" wwwei@P_PPWEIWANG-MB0 ~ %
五、授权
设置-》安全与隐私-》通用-》允许(对应的应用)