Posts Mac下安装Maven
Post
Cancel

Mac下安装Maven

1、下载maven

2、解压到指定目录 /Library/apache-maven-3.6.3

3、设置环境变量,打开终端,输入vim ~/.bash_profile

1
2
3
export MAVEN_HOME=/Library/apache-maven-3.6.3
export PATH=$PATH:$MAVEN_HOME/bin
添加完之后,按esc,执行:wq保存退出

4、执行 source ~/.bash_profile 为配置环境变量生效

5、测试 mvn -v 查看是否出现maven版本

1
2
3
4
5
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /Library/apache-maven-3.6.3
Java version: 1.8.0_151, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
This post is licensed under CC BY 4.0 by the author.

Mac下安装AgileTC

SQL基础语句