Where is my m2 folder on Mac OS X Mavericks

seeker picture seeker · Jun 30, 2014 · Viewed 122.2k times · Source

I cant seem to find the local .m2 folder on Mac OS X mavericks. Ideally it should be at {user.home}/.m2 but I cant seem to find it.

Should I create it?

Answer

imechemi picture imechemi · Nov 25, 2015

If you have used brew to install maven, create .m2 directory and then copy settings.xml in .m2 directory.

mkdir ~/.m2
cp /usr/local/Cellar/maven32/3.2.5/libexec/conf/settings.xml ~/.m2

You may need to change the maven version in the path, mine is 3.2.5