Hi,

if that's just for the local repository you can do that otherwise if you want to move the location of the settings file also, you can specify one using "-s" option in maven. In eclipse you can set the location of the settings.xml file in the maven preferences.

Be careful, if you forget the option, the settings file inside the .m2 directory of your home directory will be used. If it's not there, only the global settings file (in the maven installation directory) will be considered.

Using mvn --help you get:
-gs,--global-settings <arg>
Alternate path for the global settings file
 -s,--settings <arg>
Alternate path for the user settings file

Alexis.

Le 25/10/2010 14:51, [email protected] a écrit :
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:[email protected]]
Sent: Monday, October 25, 2010 2:47 PM
To: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]

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

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: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to