JDTLS and Maven are not pointing to same maven repositories. #343
-
After configuring JDTLS, if I open any java file in the maven project, JDTLS downloads all the project dependencies even though maven has already downloaded all the dependencies into the .m2 folder. It is not reusing the .m2 folder dependencies. Please help me if I am missing any configurations. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Afaik there's no option to change that. But you'd need to ask in https://github.com/eclipse/eclipse.jdt.ls to be sure |
Beta Was this translation helpful? Give feedback.
-
This can be configured, you can add your maven settings file inside your jdtls config like so configuration = {
runtimes = {
...
},
maven = {
userSettings = '/path/to/maven/settings.xml'
}
} and provide the local repo folder inside the settings.xml file like so <localRepository>${user.home}/.local/lib/maven</localRepository> |
Beta Was this translation helpful? Give feedback.
Afaik there's no option to change that. But you'd need to ask in https://github.com/eclipse/eclipse.jdt.ls to be sure