How to install Maven on Mac OSX
After the upgrade of Mac OS X Mavericks, Maven was removed (no idea why). So, You have to install it manually.
**2.1 – Download Maven**Download the Maven, for example apache-maven-3.1.1-bin.tar.gz
. Extracts it,
tar -xvf apache-maven-3.1.1-bin.tar.gz
$pwd
/Users/mkyong/apache-maven-3.1.1
2.2 – Set Maven command in environment variable.
Update ~/. bash_profile – create this file if doesn’t exist.
$ vim ~/.bash_profile
~/.bash_profile
export M2_HOME=/Users/mkyong/apache-maven-3.1.1
export PATH=$PATH:$M2_HOME/bin
Restart the terminal. Test it.
$mvn -version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 23:22:22+0800)
Maven home: /Users/mkyong/apache-maven-3.1.1
Java version: 1.7.0_05, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9", arch: "x86_64", family: "mac"
相關文章
- How to install Maven on Mac OS X Mavericks (10.9)MavenMac
- 【轉】Install libimobiledevice on Mac OSXdevMac
- How to Install psql on MacSQLMac
- Maven Install on Mac OS XMavenMac
- How to install Python module?Python
- MAC OSX學習(二)Mac
- How to build a jar file by mavenUIJARMaven
- How to Install LibreOffice on UbuntuUbuntu
- How to Install and Secure Redis on Centos7RedisCentOS
- How to install sougoupinyin on Debian/Ubuntu.GoUbuntu
- How To Install Vagrant IN Ubuntu14.04Ubuntu
- Mac OSX網路診斷命令Mac
- 遠端管理 Mac OSX 裝置Mac
- 在 Mac OSX 上安裝 nginxMacNginx
- Mac OSX Leopard 快捷鍵大全Mac
- Mac OSX(version 10.14.3) Maven 執行mvn -v,提示JAVA_HOME沒有正確配置MacMavenJava
- How to Install EMC PowerPath on Oracle VM 3.4Oracle
- Windows 10 美化 Mac OSX 實用教程WindowsMac
- maven打包 package install deploy區別MavenPackage
- How to Install and Configure VNC Server in CentOS 7VNCServerCentOS
- How to install bos.adt.libm of AIX?IBMAI
- How to Install and Configure VNC on Ubuntu 18.04VNCUbuntu
- Mac osx 下搭建java開發環境MacJava開發環境
- 開啟Mac OSX原生NTFS讀寫支援Mac
- mac中osx lion 預覽使用小技巧Mac
- mac配置mavenMacMaven
- Mac OS install treeMac
- How to install (D)DoS Deflate on Debian 7 (Wheezy) / UbuntuUbuntu
- MAC OSX Docker安裝教程2018MacDocker
- Mac osx開發 NSWindow之間的跳轉Mac
- Mac OSX 下如何顯示隱藏檔案Mac
- Maven命令列使用:mvn clean install(安裝)Maven命令列
- Maven-3.3.9 Install and Oozie-4.3.0 CompileMavenCompile
- Mac 中 Maven 配置MacMaven
- mac安裝MavenMacMaven
- 10g RAC: How to Clean Up After a Failed CRS InstallAI
- 最新 Mac 惡意軟體 OSX/CrescentCore 被發現Mac
- EVE-NG 入門教程 (Mac OSX BIg Sur)Mac