You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ed Hillmann <ed...@gmail.com> on 2009/05/27 00:15:05 UTC

Re: Telling mvn to look for .m2 somewhere other than user home directory

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 <Da...@kiha.com> 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:braz@AI.SRI.COM]
> Sent: Tuesday, May 26, 2009 3:07 PM
> To: users@maven.apache.org
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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