Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Maven's settings.xml located on Mac OS?

Where is Maven's settings.xml located on Mac OS?

like image 723
cesarggf Avatar asked Oct 03 '22 06:10

cesarggf


People also ask

Where is Maven settings xml in Mac?

xml file provides configuration for all Maven users on a machine (assuming they're all using the same Maven installation). It's normally provided in ${maven. home}/conf/settings. xml ."

Where is my Maven settings XML file?

The Maven settings file, settings. xml , is usually kept in the . m2 directory inside your home directory.

Where is settings XML file in .m2 folder Mac?

open a terminal window, and type in: touch ~/. m2/settings. xml.

Where is Maven stored in Mac?

2.1) Download Maven for Mac OS The binaries will be extracted in the “apache-maven-3.6. 3” directory. You can keep them anywhere, I have kept it in the Downloads directory for the sake of easy access.


2 Answers

If you use brew to install maven, then the settings file should be in

/usr/local/Cellar/maven/<version>/libexec/conf

like image 168
Meng Avatar answered Oct 07 '22 09:10

Meng


It doesn't exist at first. You have to create it in your home folder, /Users/usename/.m2/ (or ~/.m2)

For example :

alt text

like image 87
Colin Hebert Avatar answered Oct 07 '22 09:10

Colin Hebert