Facing some issue while installing Maven.
I have set the path in my Bash profile. Still “mvn -version” command doesn’t work.
Downloaded latest version of maven:
Added it to my Bash profile:
java -version works.
But mvn -version doesn’t.
What am I missing here???
Advertisement
Answer
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.