Reputation: 1067
I did get this error message in intellij while running a spring-boot server:
'mvn' is not recognized as an internal or external command, operable program or batch file
It didnt recognize maven when I was trying to build the project standing in my projectfolder with: mvn spring-boot:run
I solved this by downloading maven: https://maven.apache.org/install.html and manually added the bin file in the apache-maven-3.5.3 folder to librarys
It seems a bit backwards. Are there any other/better way?
Upvotes: 5
Views: 21819
Reputation: 1062
In my case, I had to uncheck Shell integration
in
IntelliJIDEA Menu -> Preferences -> Tools -> Terminal
Upvotes: 0
Reputation: 98
If Maven is installed manually via: http://maven.apache.org/download.cgi and: 'mvn' is not recognized as an internal or external command, operable program or batch file
. Just restart your IntelliJ IDEA and run your spring-boot server again!
Upvotes: 2