英文:
Not able to install Maven in Mac OS
问题
在安装Maven时遇到了一些问题。
我已经在我的Bash配置文件中设置了路径。但是"mvn -version"命令仍然不起作用。
已将其添加到我的Bash配置文件中:
java -version可以工作。
但是mvn -version不能工作。
我漏掉了什么?
英文:
Facing some issue while installing Maven.<br/>
I have set the path in my Bash profile. Still "mvn -version" command doesn't work.
Downloaded latest version of maven:
<br/>
<br/>
Added it to my Bash profile:
java -version works. <br/>
But mvn -version doesn't.
What am I missing here???
答案1
得分: 2
macOS的Shell已从bash更改为zsh。
export
很可能会显示您的配置设置未被读取,因为zsh使用不同于bash的配置文件。
请查阅man zsh
以了解详细信息。您很可能需要将您的设置移动到~/.zshenv
。然后在一个新的Shell中使用export
来查看您的设置是否生效。
英文:
The MacOS shell has changed from bash to zsh.
export
will most likely show that your configuration settings wasn't read as zsh uses different configuration files than bash.
Investigate man zsh
to understand the details. You will most likely need to move your settings to ~/.zshenv
. Again use export
in a fresh shell to see that your settings are active.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论