Reputation: 3245
While working with Maven repository, I understand that Jars gets downloaded at .m2 repository in the hard disk. I want to give it a customized name at my desired location, say "C:\Users\Vamee\Desktop". I read somewhere that I should make changes in settings.xml like below
{M2_HOME}\conf\settings.xml
/path/to/local/repo
C:\Users\Vamee\Desktop
But problem is that I am unable to find Settings.xml in my file system. Please tell me where is Settings.xml or is there any other way to do it.
Upvotes: 0
Views: 5939
Reputation: 1793
The maven local repository is located in the /home/.m2 directory, the folder is probably hidden. So, you'll need to press Ctrl+H to see hidden folders. Try finding the setting file there.
Upvotes: -1
Reputation: 56
This worked for me in the Kepler version of Eclipse for the inbuilt Maven:
Upvotes: 0
Reputation: 30310
It depends on the operating system, but basically it is in the .m2
folder your home directory. Or in the conf
folder in $M2_HOME. See here.
So it sounds for you like it should be in C:\Users\Vamee\.m2
.
Upvotes: 0
Reputation: 22993
the environment variable M2_HOME
should point to the Maven installation directory.
e.g. if Maven is installed into C:\Program Files\Maven
set M2_HOME=C:\Program Files\Maven
dir "%M2_HOME%\conf\settings.xml"
In the settings.xml you can set the path to your local maven repository.
<localRepository>x:/your/local/repository</localRepository>
Upvotes: 3
Reputation: 136142
If you are able to find Maven installation directory in your file system you will certainly find settings.xml in its conf folder.
Upvotes: 0
Reputation: 1791
settings.xml
may not exist - you have to create it. Then just modify it as described here
Upvotes: 0