技术干货程序员Java从入门到放弃

Mac 下安装及配置Maven

2017-06-03  本文已影响0人  Deque

apache下载Maven:

下载网站如图

使用终端设置 Maven classpath:

vi ~/.bash_profile
export M2_HOME=/Volumes/SD/开发/开发工具/apache-maven-3.5.0
export PATH=$PATH:$M2_HOME/bin

如下图:


配置maven变量
aiuiotcom:~ aiuiot$ source ~/.bash_profile
aiuiotcom:~ aiuiot$ mvn -v
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)
Maven home: /Volumes/SD/开发/开发工具/apache-maven-3.5.0
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre
Default locale: zh_TW, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.5", arch: "x86_64", family: "mac"
aiuiotcom:~ aiuiot$ 
上一篇 下一篇

猜你喜欢

热点阅读