I have read similar questions about this problem but it is not working anyways.
I've extracted maven 3.3.3 to D:\Maven (Java already installed and works fine) then added 2 system variables:
Variable | Value |
---|---|
M2 |
%M2_HOME%\bin |
M2_HOME |
D:\Maven |
I've also appended next in the path:
%M2%
But it is still not working.
I can execute mvn -version
from the D:\Maven\bin
but can't do this from another directory.