I get this error message when I try to run my code. The default Maven Home Directory was the m2 folder. I tried using override and I selected where all the Maven files are in the m2 folder and it still gave me this error message. I'm unsure how to fix is any help will be much appreciated.I
maven is not a valid Maven home directory
This error message means that the folder named "maven" that you've chosen does not contain maven installation.
The default Maven Home Directory was the m2 folder.
Normally, by default you'll see either the embeded maven or the value of M2_HOME environment variable. This makes me think that maven is not configured correctly on your machine.
In command prompt, to see where M2_HOME points run: echo %M2_HOME% Then make sure that this value is either empty or points to where maven is installed. Finally, make sure maven is installed in folder different than .m2 (where actually it stores its settings).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With