Set Maven PATH in macOS

Asked on July 23, 2023
I have downloaded Maven in my system macOS Ventura. I have extracted it. The bin path is
/Users/<user_name>/apache-maven-3.9.1/bin
Where can I set PATH?

Replied on July 24, 2023
1. Go to /Users/<user_name>/.zshrc . It is hidden file, you can see hidden files by pressing shift command and dot altogether.
2. Add the maven bin path in .zshrc file and save it.
export PATH=$PATH:/Users/<user_name>/apache-maven-3.9.1/bin
3. Open new terminal and run maven command to test it.

Replied on July 24, 2023
Got it. Thanks.