Where is my m2 folder on Mac OS X Mavericks

后端 未结 8 1527
醉话见心
醉话见心 2020-12-14 00:57

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?

8条回答
  •  没有蜡笔的小新
    2020-12-14 01:15

    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

提交回复
热议问题