How to specify which repository or .m2 folder to use in case of multiple user repositories?

+1 vote
asked Mar 1, 2017 by Hitesh Garg (799 points)  

There are multiple repositories installed on my system as it is shared by multiple users and there are two maven repositories, one under my username and another in admin's username.

How can I specify which repository's settings.xml to use as even though I have logged in through my credentials it is referring to admin's repository which has different settings.

How can I point it to my repository?

Please log in or register to answer this question.