Mac安裝Maven


 

1、從官網(https://maven.apache.org/download.cgi)下載 Maven 並解壓。

2、配置環境

  .  vim ~/.bash_profile  

export MAVEN_HOME=/Users/nicknailo/Documents/apache-maven-3.5.3
export MONGODB_HOME=/Users/nicknailo/Documents/mongodb
export PATH=${PATH}:${MAVEN_HOME}/bin:$MONGODB_HOME/bin

 source ~/.bash_profile

3、驗證安裝

nicknailodeMacBook-Pro:~ nicknailo$ mvn -v
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-25T03:49:05+08:00)
Maven home: /Users/nicknailo/Documents/apache-maven-3.5.3
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.3", arch: "x86_64", family: "mac"

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM