maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baptiste MATHUS>
Subject Re: Defining common localRepository that will work on both Windows and linux
Date Wed, 23 Mar 2011 10:48:59 GMT
Another simple solution we use: define environment variable, and set value

Then just set this env variable correctly, depending on the system it's
running on. But the settings.xml can always be the same.

We use this technique to be able to have the same settings.xml between
developers using Windows and the CI server under Unix.


2011/3/22 Wayne Fay <>

> > My settings file in the .m2 folder begins like this-
> > <localRepository>C:\maven-repo\</localRepository>
> >
> > I want to make this generic and define a common localRepository which
> will
> > work both on Windows and on Linux. Please help.
> If you drop the C:\ and just specify a path, it will be common to both
> Windows and Linux. I am pretty sure Windows uses the SystemDrive
> property (type "set" in MSDOS to see the value) to decide which drive
> the path is located on, so hopefully all your Windows users have that
> value the same.
> For example:
> <localRepository>/maven-repo/</localRepository>
> Wayne
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Baptiste <Batmat> MATHUS -
Sauvez un arbre,
Mangez un castor !

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message