maven / m2eclipse local repository path

Discussion in 'Plugin Development' started by eltorqiro, Mar 2, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    I am using a different repository for m2eclipse as opposed to my regular external mvn which I am more familiar with, but have always used default settings for. By default, the repository is in $HOME/.m2.repository, which on Win7 is typically something like c:\users\someone\.m2\repository.

    I had a heck of a time trying to find out how to change this location, since the repo path is not changeable from within m2eclipse itself, and both mvn and m2eclipse do not create a default settings.xml for you to easily modify.

    If anybody else is having similar headaches, here is a default empty settings.xml for you, where you can change the localRepository path (or other settings). If you open this in eclipse, you will get nice completion tips, too.

    Just put this wherever you want your settings to be, call it settings.xml and choose this file from within the m2eclipse settings within eclipse (Window->Preferences->Maven->User Settings).

    <settings xmlns=""
Thread Status:
Not open for further replies.

Share This Page