How to install Maven on Mac OS X Mavericks (10.9)
Step 1: Download Maven binaries from Maven Download Page. I was using Maven 3.0.5, so I downloaded apache-maven-3.0.5-bin.tar.gz.
Step 2: You can install Maven at any location but since it’s a one time process, I didn’t wanted it in my user directory. So I installed it in /usr/local directory. You might have to use sudo command to install in /usr/local directory if you are getting permission denied error.
$ cd /usr/local
$ sudo mv /Users/chang/Desktop/apache-maven-3.3.3-bin.tar.gz ./
$ sudo tar -xvf apache-maven-3.3.3-bin.tar.gz
Step 3: Now open the bash profile file and add following lines into it. Usually profile file names are .bash_profile or .profile, use whichever you have in your system. If you don’t have profile file, you will have to create one with vi command.
$ cd $HOME
$ vi .bash_profile
#Add below lines in the profile
export M2_HOME=/usr/local/apache-maven-3.3.3
export PATH=$PATH:$M2_HOME/bin
#save and quit
$ source .bash_profile
That’s it, maven is installed on your latest Mac OS X and you can verify it by issuing below command.
$ mvn --version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00)
Maven home: /usr/local/apache-maven-3.3.3
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.3", arch: "x86_64", family: "mac"
參考:http://www.journaldev.com/2348/how-to-install-maven-on-mac-os-x-mavericks-10-9
相關文章
- Maven Install on Mac OS XMavenMac
- How to install Maven on Mac OSXMavenMac
- Mac OS 10.9 [Mavericks] 編譯支援 ZeroMQ 4.0.1 版本的 gozmqMac編譯MQGo
- 如何在OS X 10.9 Mavericks下安裝Command Line Tools(命令列工具)命令列
- Mac OS install treeMac
- 新版Mac OS X小牛釋出版本號10.9:具有3大特點Mac
- How to Install psql on MacSQLMac
- Mac OS XMac
- Mac OS 配置Maven步驟MacMaven
- 製作OSX10.9Mavericks安裝U盤
- 蘋果釋出 OS X Mavericks 10.9.2,修復 SSL 安全漏洞蘋果
- Install netCDF under mac osMac
- Mac OS X 10.9下解決cocos2d-x在Xcode4.6.x的模板不顯示問題MacXCode
- Acer 4750G安裝OS X 10.9 DP4(簡版)
- Vmware玩mac os x分享Mac
- GoSquared:OS X Mavericks上架24小時安裝率已超過7%Go
- [Mac OS X] 如何在終端檢視 Mac OS 版本資訊Mac
- Chitika:2014年3月OS X Mavericks佔有率達40%
- Mac OS X 清除DNS快取MacDNS快取
- Mac OS X下如何使用OpenGLMac
- Mac OS X 背後的故事Mac
- Chitika:Mavericks釋出24小時後已佔北美OS X 5.5%網路流量
- MAC OS X下建立iso檔案Mac
- Mac OS X 下搭建thrift環境Mac
- mac os x 啟用apache 和 phpMacApachePHP
- Mac OS X 上用 otool 代替 lddMac
- Mac OS X常用軟體介紹Mac
- Net Applications:2014年3月OS X Mavericks的使用率達49.5%APP
- Windows下虛擬機器安裝Mac OS X ----- VM12安裝Mac OS X 10.11Windows虛擬機Mac
- 解決mac OS 10.9 下python 在terminal下崩潰的問題MacPython
- Mac OS X中MacPorts安裝和使用Mac
- MAC OS X系統目錄結構Mac
- 提高 Mac OS X 速度的 52 個方法Mac
- 在Mac OS X中配置Apache + PHP + MySQLMacApachePHPMySql
- Mac OS X is not supported with software virtualization解決方法Mac
- Mac OS X 10.2 快速關機(轉)Mac
- Mac OS X 10.2 的按鍵(轉)Mac
- How to install Python module?Python