''mvnw' is not recognized as an internal or external command
I am getting the following, while running 'mvnw' command. How to add maven wrapper to a project?
project_root>mvnw
'mvnw' is not recognized as an internal or external command, operable program or batch file.'
Solution 1:[1]
Resolved it using taraki-maven-plugin, as mentioned here -https://howtoprogram.xyz/2016/09/11/maven-wrapper-example/
project_location>mvn -N io.takari:maven:wrapper
Solution 2:[2]
I encountered the same problem for windows.
go to control panel, go to system, select advanced system settings on right.
select advanced tab, click environment variables
now in system variables path add the path to your maven, /bin folder.
after editing it to include use
mvn -version
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nandan |
Solution 2 | Mish Mish |