I am trying to use maven in a batch file but it says that "mvm" is an invalid command. I have tried to do it manually and it seems that the command only works once.
Path (Shown with new lines):
C:\ProgramData\Oracle\Java\javapath;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\Users\█\Maven\bin;
C:\Users\█\AppData\Local\Microsoft\WindowsApps;
Test Code:
mvm --version
Error:
'mvm' is not recognized as an internal or external command, operable program or batch file.