acroscene
acroscene

Reputation: 1067

maven not recognized in intellij

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

Answers (3)

prsadrian
prsadrian

Reputation: 33

In Windows Run your intellij as administrator

Upvotes: 1

DaNeSh
DaNeSh

Reputation: 1062

In my case, I had to uncheck Shell integration in

IntelliJIDEA Menu -> Preferences -> Tools -> Terminal

enter image description here

Upvotes: 0

mzhehalo
mzhehalo

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

Related Questions