This is covered in the help: mvn --help

You want to use the "-s" option to tell mvn where your settings.xml file is, 
like so:

mvn -s /some/other/dir/settings.xml 



-----Original Message-----
From: Rodrigo de Salvo Braz [mailto:[email protected]] 
Sent: Tuesday, May 26, 2009 3:07 PM
To: [email protected]
Subject: Telling mvn to look for .m2 somewhere other than user home directory

Hi,

I am trying to tell mvn via command line not to use my OS user home 
directory for settings (that is, to store the directory .m2 somewhere else).

I tried adding -Denvironment.home=<new directory>. Other things I tried 
were -Denv.home and setting the environment variables user_home. None of 
those worked.

Can anyone give me any hints as to what to do regarding this?

Best,

Rodrigo

---------------------------------------------------------------------
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