未能在Yosemite上安装maven

时间:2015-05-10 02:21:05

标签: macos maven

我试图在osx yosemite上安装maven,我做过:

sudo port install maven3

返回

...
--->  Installing maven3 @3.3.3_0
--->  Activating maven3 @3.3.3_0

To make maven 3.3.3 the default, please run
    sudo port select --set maven maven3

--->  Cleaning maven3
--->  Updating database of binaries

但是当我跑步时

sudo port --set maven3

我得到了:

Error: global does not accept --set

修改

这是我的〜/ .profile文件

export PATH=/usr/local/apache-ant/bin:"$PATH"
  2 export PATH=/usr/local/apache-ant/bin:"$PATH"
  3 export PATH=/Users/filipeferminiano/Downloads/apache-maven-3.3.3/bin:$:PATH

但mvn仍未在终端中识别

1 个答案:

答案 0 :(得分:0)

它适用于:

sudo port select --set maven maven3