Another simple solution we use: define environment variable, and set value accordingly. <localRepository>${env.M2_REPO}</localRepository>
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. Cheers 2011/3/22 Wayne Fay <wayne...@gmail.com> > > 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: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !