This article shows how to install Maven (3.6.3) on macOS Monterey(version 12.2.1) with M1 processor.

Download Maven

Goto https://maven.apache.org/download.cgi and download the version for instance 
apache-maven-3.8.7-bin.tar.gz



Install Maven

Go to the download location
Normally /Users/${username}/Downloads and execute the following command

Terminal
tar -xvzf apache-maven-4.0.0-alpha-3-bin.tar.gz
x apache-maven-4.0.0-alpha-3/bin/mvn.cmd
x apache-maven-4.0.0-alpha-3/bin/mvn
x apache-maven-4.0.0-alpha-3/README.txt
x apache-maven-4.0.0-alpha-3/LICENSE
x apache-maven-4.0.0-alpha-3/NOTICE
x apache-maven-4.0.0-alpha-3/lib/
x apache-maven-4.0.0-alpha-3/lib/aopalliance.license
x apache-maven-4.0.0-alpha-3/lib/commons-cli.license
x apache-maven-4.0.0-alpha-3/lib/commons-codec.license
x apache-maven-4.0.0-alpha-3/lib/commons-lang3.license
x apache-maven-4.0.0-alpha-3/lib/failureaccess.license
x apache-maven-4.0.0-alpha-3/lib/guava.license
x apache-maven-4.0.0-alpha-3/lib/guice.license
x apache-maven-4.0.0-alpha-3/lib/httpclient.license
x apache-maven-4.0.0-alpha-3/lib/httpcore.license
It will create a folder apache-maven-4.0.0-alpha-3 which will contain unzipped contains from the downloaded file. Now Move the folder apache-maven-4.0.0-alpha-3 to final destination. In my case i moved to a folder DevRuntime which contains other runtimes for my development.
~/.zshenv
export MAVEN_HOME=~/DevRuntime/apache-maven-4.0.0-alpha-3 export PATH=$PATH:$MAVEN_HOME/bin
Now source the zshenv file
Terminal
source ~/.zshenv

Install Maven

Now Check that Maven is working
  
Terminal
mvn --verison
Apache Maven 4.0.0-alpha-3 (2ccf57baa5191468f9911fe85fd99672ac3bacb9)
Maven home: /Users/SiddB/DevRuntime/apache-maven-4.0.0-alpha-3
Java version: 18.0.1.1, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-18.0.1.1.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "12.2.1", arch: "aarch64", family: "mac"

How to get Bash version number in Mac OS

Following command can be used to know the bash version in Mac OS.
Execute the following command to know the bash version.
bash --version
When I execute the above command I get the followings.

GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.
      

Image showing the command and it's output.



Apple's #WWDC2019 (Worldwide Developers Conference) was held on June 3-7.
Details of the cool announcements  can be found here
https://developer.apple.com/wwdc19/

macOS's next big upgrade will be called Catalina and with it comes a big change for developers.
Catalina macOS

By default macOS has used bash as the default shell. New user accounts in macOS Catalina will use zsh. Zsh is an open source shell very popular and comes with a ton of features.

Zsh Shell

Zsh git repository link is https://github.com/robbyrussell/oh-my-zsh/

Apple support page contains details about how to set the Zsh shell as default for macOS Mojave and earlier https://support.apple.com/en-us/HT208050