Another simple solution we use: define environment variable, and set value
accordingly.
${env.M2_REPO}
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 be
> My settings file in the .m2 folder begins like this-
> C:\maven-repo\
>
> 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 pr
Hi,
My settings file in the .m2 folder begins like this-
C:\maven-repo\
I want to make this generic and define a common localRepository which will work
both on Windows and on Linux. Please help.
Thanks,
Ritika Goel
Equities Connectivity and Futures
Barclays Capital
(212) 320-7356
_