Where is my m2 folder on Mac OS X Mavericks
On the top of the screen you can find the Finder. Click Go -> Go to Folder -> search ~/.m2
If it is not found, as m2
is a hidden file you need to enable visibility by typing the following command in terminal:
defaults write com.apple.finder AppleShowAllFiles YES
Go to finder:
Press on keyboard CMD+shift+G . it will show u a popup like this
Enter path ~/.m2
press enter.
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