If you get mvn command not found when you run a maven command on macOS or any bash terminal then you have not set the PATH for maven home.
You need to locate where Apache Maven got installed on your device, on my macOS Big Sur it got installed under /opt/homebrew/Cellar/maven/3.6.3_1, as it is installed via homebrew all I need to do is add path of homebrew bin to PATH,
export PATH="$PATH:/opt/homebrew/bin/"

zsh command not found mvn
Note that it is better to set the path details in the ~/.zshrc file to make it permanent.
More Posts related to HowTos,
- Fix NVIDIA GeForce Experience ERROR CODE 0x0003
- How to convert byte array to String [Kotlin]
- Unzip a Zip file from Terminal Command
- How to write hello world different languages syntax
- [Error] zsh: command not found: mvn
- How to know the version of OpenSSL
- [Solution] IDEA IntelliJ System.out.println function shortcut (sysout alternative for eclipse IDE)
- The default username and password for RabbitMQ
- ChatGPT Outage: Hmm...something seems to have gone wrong. Maybe try me again in a little bit.
- How to check the version of NodeJS installed
- Gmail Unable to upload because it is a folder or a package (like an application bundle or RTFD document)
- How to remove password from pdf file
- BSNL Broadband upgrades speed to minimum 2MBps for all users 512Kbps 1Mbps
- MongoDB: Failed to connect to 127.0.0.1:27017 reason: Connection refused
- Turn off Focus Mode on Mac
- Steps to Delete or Deactivate Instagram Account
- [IRCTC] Indian railways official eRail API 1.1 for developers to get train info
- CentOS Cannot find a valid baseurl for repo base7x86_64 yum
- Why I see Download pre-built shared indexes in IntelliJ
- Copy file from a remote server to current local directory system using SCP command
- [Fix] Minecraft Error: A JNI error has occurred, please check your installation and try again
- How to install Zsh shell
- Merge multiple zip files without unzipping (extracting)
- How to find someone on Instagram
- How to get an embed code from Vimeo?
More Posts:
- How to comment out a block of code in Python - Python
- Upload a File in Microsoft SharePoint using PowerShell Script - SharePoint
- How to remove JetBrains Toolbox from Mac Startup - HowTos
- Using Document Map in Notepad++ - NotepadPlusPlus
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python] - Python
- How to Run PowerShell Script (Mac/Windows/Linux) - Powershell
- Java SE JDBC with Prepared Statement Parameterized Select Example - Java
- How to Initialize ArrayList Java with Values - Java