If you get an error “‘mvn’ is not recognized as an internal or external command, operable program or batch file”, Follow the steps below to install Maven correctly.
Step 1: Download Maven from Maven Website zip file
Step 2: Extract it to C folder
Step 3: Add MAVEN_HOME to system variable
Step 4: Add %MAVEN_HOME%\bin To PATH
Step 5: Test by checking “mvn -version”
if its showing mvn version then it’s correctly installed