I am getting the mvn command not recognized as an internal or external command.
mvn
I have setup the M2_HOME, JAVA_HOME and added %M2_HOME%/bin to the path
I have a stupid comment but someone else will have that issue. I was getting that same error when I was trying to put in ./mvnw clean package and I found out that I had to change it a bit to .\mvnw clean packageand I lived happily ever after.
./mvnw clean package
.\mvnw clean package