Issue
I have downloaded binary mvn file, extracted it and added the MAVEN_HOME system variable and %MAVEN_HOME%\bin to path. https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip
I have tried multiple different directories, restarted PC multiple times and also ran cmd prmpt in administrator mode to eliminate any odds against me.
Update: I don't see the .cmd files after extraction. Files are present before extraction. Hidden files are enabled and when I create a .cmd file manually from mvn file, it still doesn't work.
Note: I have installed maven atleast in 10 other machines in the past. But never stuck as badly.
Solution
Solved it myself. Using the winRAR to extract the downloaded bin.zip file caused the problem. When accessed directly through winrar, the .cmd files (.bat in older version of maven) were present. But after extracting to a folder, the files are missing.
Root Cause: For security reasons, WinRAR is omitting .cmd and .bat files from extraction list by default.
Using the default "Extract All.." option from right click menu resolved this.
Answered By - Dinesh Babu
Answer Checked By - Dawn Plyler (JavaFixing Volunteer)