Hei

In $USERHOME\.m2 settings.xml file you can specify the location of the
repository

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd";>

        <localRepository>point to your new location</localRepository> 
.....

Hermod 

-----Original Message-----
From: Ben Stover [mailto:bxsto...@yahoo.co.uk] 
Sent: Monday, October 25, 2010 2:47 PM
To: users@maven.apache.org
Subject: How to move $USERHOME\.m2 folder to another directory?

Currently my Maven settings dir is

C:\Documents and Settings\ben\.m2\
resp.
C:\Documents and Settings\ben\.m2\repository

How can I move this directory to another location e.g.

D:\maven

Which parameters in which file do I have to change (even in Eclipse
maven plugin) to have Maven working with the new config+repository
folder?

Ben



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to