Search code examples
maven-2osx-mavericks

Where is my m2 folder on Mac OS X Mavericks


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?


Solution

  • 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