Is it possible to change default config location on Windows?
Answered
IntelliJ IDEA creates its config folder in C:\Users\User\ folder. Also Maven settings are stored in here in .m2 folder, etc. I can't seem to find a way in setting to change that foler to some other place/drive. I have tried to fool it and copy already created .IdeaIC2019.3 to another drive, deleted it in original location, started IDEA and tried to point to that copied folder, to config folder. It starts from there, but it still creates the folder in C again and say puts truststore there. Maybe there is some command line argument to point to a permanent config location, maybe also for Maven, etc.?
Please sign in to leave a comment.
Please see Changing IDE default directories used for config, plugins, and caches storage about how to change IDE's configuration/caches/logs/plugins folders. But this is not related to Maven configuration.
For Maven you can re-define settings configuration file and the location of your local Maven repository in IDE Maven settings:
Thanks. What i have tried. I have ran IntelliJ and exited. Copied C:\Users\User\.IdeaIC2019.3 folder to D:\ drive. Added a user variable (Windows 10) IDEA_PROPERTIES with value D:\idea.properties. Created a file idea.properties in D: with contents:
idea.config.path=d:/.IdeaIC2019.3/config
idea.system.path=d:/.IdeaIC2019.3/system
Then i have deleted C:\Users\User\.IdeaIC2019.3 folder and ran Intelli again. It asks to point to config.
Is this the right environment variable?
Do i have to use / slashes as opposed to \ as is usual in Windows in idea.properties file?
D:\idea.properties should work. Do you use Toolbox App? If you do, try restarting Toolbox then IntelliJ IDEA.
If issue remains provide idea.log file after IDE restart.
For uploading you can use ftp://ftp.intellij.net/.uploads / https://uploads.services.jetbrains.com or any file sharing service.