I also think you can use the following command-line parameters: org.apache.maven.global-settings to assign the location of global settings org.apache.maven.user-settings to assign the location of the user's settings
For our developers, we use the following alias for mvn mvn -Dorg.apache.maven.global-settings='common settings file' This allows us to supply an alternative global settings file. I assume that if you use the "user-settings" parameter, you can achieve the same thing. Hope this helps On Wed, May 27, 2009 at 8:11 AM, Dang H. Nguyen <[email protected]> wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
