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,
- Background task activation is spurious error - Windows 10, Office 2016, Office 365
- How to Generate Self-Signed OpenSSL certificate in three easy steps
- How to Kill service running on port using terminal command
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop
- Top 10 emerging breakthrough trending technologies
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015
- Setting up RSS feeds notifications within Outlook
- Static IP MTNL available at Rs. 200 per month
- CentOS Cannot find a valid baseurl for repo base7x86_64 yum
- How to write hello world different languages syntax
- BSNL Broadband upgrades speed to minimum 2MBps for all users 512Kbps 1Mbps
- [IRCTC] Indian railways official eRail API 1.1 for developers to get train info
- How to submit website to dmoz directory
- Gmail Unable to upload because it is a folder or a package (like an application bundle or RTFD document)
- How to use HashTags # correctly on Social Media Facebook Twitter
- Copy all .vcf Mobile Contacts files into one .vcf
- How to Change or Set a new Password for your Wi-Fi Router
More Posts:
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop - HowTos
- How to Change or Set a new Password for your Wi-Fi Router - HowTos
- Sign in as different user missing in SharePoint 2013 - SharePoint
- Calculate Area of Parallelogram - C-Program
- Spotlight Search file path location on Mac OS X Mavericks or Yosemite - Mac-OS-X
- JSON with PHP Example: JSON Tutorial - Json-Tutorial
- List of Code Snippets/Templates to Eclipse IDE - Eclipse
- appcompat_v7 errors after updates to API level 21 Material Theme - Android
- Add Custom header and footer to Windows Notepad file - NotepadPlusPlus
- Android Studio 4.2 Canary 1 now available - Android-Studio
- Bypass domain name for IIS site (SharePoint) - SharePoint
- PHP Base64 encoding decoding a variable - PHP
- How to create SharePoint List Item programmatically - SharePoint
- How to place two div elements next to each other - CSS
- Change default language highlighting in Notepad++ - NotepadPlusPlus