You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm using this LSP, two cache directories are created in my home directory. I've tried to make wrapper and set HOME=$XDG_CACHE_HOME or pass -Duser.hom=$XDG_CACHE_HOME, but those are still created in home.
~/.tooling is especially bad, as I have other tool which uses this directory, but for important data, not cache.
Could ~/.m2 and ~/.tooling be moved to something like $XDG_CACHE_HOME/eclipse.jdt.ls/m2 and $XDG_CACHE_HOME/eclipse.jdt.ls/tooling?
Environment variables to control those would be fine too.
The text was updated successfully, but these errors were encountered:
While we don't currently support configuring the local repository ($HOME/.m2/repository/) directly, we do have java.configuration.maven.userSettings and java.configuration.maven.globalSettings which configure the location of the user/global settings file. That file, among other things can configure the location of the local repository. See https://maven.apache.org/ref/3.6.3/maven-settings/settings.html for more details on what can be configured there.
So in your properties file, you could just set java.configuration.maven.userSettings=/my/preferred/location/settings.xml and in the settings file ensure you have <localRepository>/my/preffered/repository/location/</localRepository>
I think you could even avoid setting the property if you don't mind placing the settings file in ${user.home}/.m2/settings.xml (according to #1586 (review)).
As for .tooling, looking at places like
eclipse.jdt.ls/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/internal/gradle/checksums/WrapperValidator.java
Line 256 in 8028f3f
return new File(System.getProperty("user.home"), ".tooling/gradle/versions.json");
, it seems to be hard coded for now.
When I'm using this LSP, two cache directories are created in my home directory. I've tried to make wrapper and set
HOME=$XDG_CACHE_HOME
or pass-Duser.hom=$XDG_CACHE_HOME
, but those are still created in home.~/.tooling
is especially bad, as I have other tool which uses this directory, but for important data, not cache.Could
~/.m2
and~/.tooling
be moved to something like$XDG_CACHE_HOME/eclipse.jdt.ls/m2
and$XDG_CACHE_HOME/eclipse.jdt.ls/tooling
?Environment variables to control those would be fine too.
The text was updated successfully, but these errors were encountered: