Souin
Souin

Reputation: 94

Maven Dependencies location - Java and Eclipse

I moved to location of my java project from the place "a" to the place "b" of my computer. I changed all that was needed to be changed in Eclipse (because he need to know that my project is in place "b").

But the Maven Dependencies are still in place "a". Indeed, if i check that in Eclipse, my .java files (project) is in "/b/" but my .jar files (maven dependencies) are in "/a/".

I think it's a little button, like "Maven Update" or "Maven Install" but I already tried those two methods and the Maven Dependencies are still in the "a" location :/ .

I work in an entreprise and they have maybe 50/70 Maven Dependencies. I can't update one by one if it exists!

Thank you, Clément.

Upvotes: 0

Views: 113

Answers (1)

m.antkowicz
m.antkowicz

Reputation: 13591

In your user's main directory there is .m2 directory - you need to change line

    <localRepository>C:/Users/TheUser/.m2/forExample</localRepository>

inside settings.xml file to change the location of Maven's dependencies

Upvotes: 2

Related Questions