Restart your machine, after setting up your M2_HOME (pointing to you Maven basedir, NOT the bin
dir) and PATH (PATH=%M2_HOME%\bin;%PATH%
).
Then do:
dir %M2_HOME%\bin\mvn*
If there is a .bat
file, it should work under Windows, as it appears to be finding it. If there isn't one, then your paths are not right and you need to make sure your %PATH%
variable really points to the correct path to Maven.
Make sure you are using the proper slashes for your OS. Under Windows they're \
.