1、mac安装brew
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
2、mac安装maven并配置环境变量
- 下载maven:https://maven.apache.org/download.cgi#downloading-apache-maven-3-8-1

vim ~/.bash_profileexport M2_HOME=/Users/robbie/apache-maven-3.5.0 export PATH=$PATH:$M2_HOME/binsource ~/.bash_profilemvn -v
本文指导在Mac上使用Brew安装软件,通过/usr/bin/ruby-e命令行进行快速安装。接着详细介绍了如何下载并配置Maven,包括编辑~/.bash_profile设置M2_HOME和PATH环境变量,并验证安装成功。
2459

被折叠的 条评论
为什么被折叠?



