我按网上的教程,
1,随便找了个路径解压maven包,路径
/Users/user/Documents/work/apache-maven-3.2.1
2,在~/目录下创建了.bash_profile
内容如下
M3_HOME=/Document/work/apache-maven-3.2.1
PATH=$M3_HOME/bin:$PATH
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/
export M3_HOME
export PATH
export JAVA_HOME
3,重启执行mvn -version
结果
-bash: mvn: command not found
弱弱的问下。。教程都这样就结束了。。为啥我还是找不到命令呢。。。求解 跪谢
1,随便找了个路径解压maven包,路径
/Users/user/Documents/work/apache-maven-3.2.1
2,在~/目录下创建了.bash_profile
内容如下
M3_HOME=/Document/work/apache-maven-3.2.1
PATH=$M3_HOME/bin:$PATH
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/
export M3_HOME
export PATH
export JAVA_HOME
3,重启执行mvn -version
结果
-bash: mvn: command not found
弱弱的问下。。教程都这样就结束了。。为啥我还是找不到命令呢。。。求解 跪谢