zsh: command not found: mvn

Open a new terminal, execute mvn related commands, and report an error "zsh: command not found: mvn"

Reason: The zsh configuration file does not load the configuration items of ~/.bash_profile.
Solution: Add the content of the source ~/.bash_profile configuration item in the zsh configuration file

vim ~/.zshrc

Add the following:

source ~/.bash_profile

Guess you like

Origin blog.csdn.net/bobocqu/article/details/127484561