I've just started using IntelliJ (I'm used to Eclipse) and I've come across something that really annoys me. Whether it's me or IntelliJ, I really want this fixed.
Every time I open a new project, the "Maven home directory" setting is reset and I therefore have to set this every time I open a project I haven't opened before.
Is there any way to set this setting permanently/globally?
From the main menu select File | Settings/Preferences | Build, Execution, Deployment |Build Tools | Maven. On the Maven settings page, in the Maven home directory field, specify the location of the Maven custom version installation.
The maven home directory tells you where maven is installed.
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.
IntelliJ IDEA 2018.x or later:
Older versions:
You can change it in the Template Project Settings so that all the new projects inherit this setting. You can access it from the File
menu when the project is open or from the Welcome Screen: Configure
| Template Project
| Settings
.
In Intellij 2018.1:
File -> Other Settings -> Default Settings...
Changing default settings will apply only to new projects.
Current project won't be affected.
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