On Wed, Oct 20, 2010 at 10:46 PM, Martin Höller <mar...@xss.co.at> wrote:
> Hi! > > On Wednesday 20 October 2010 Hilco Wijbenga wrote: > > On 11 October 2010 21:48, Hilco Wijbenga <hilco.wijbe...@gmail.com> > wrote: > > > I could have sworn I've used ${localRepository} before but it doesn't > > > seem to work. I've also tried ${settings.localRepository} and > > > ${maven.repo.local}. How do I refer to the location of the local > > > repository in a portable way? Is there a difference between Maven2 and > > > Maven3? > > > > I had a look in the source code and found the following: > > > [...] > > Is there some documentation on how properties are handled internally? > I don't know what is actually the prefered way of accessing the path to the > local repository (but I'm quite sure I saw discussions about it on this > list before). However, running your example pom.xml works as soon as I > changed ${maven.local.repo} to ${settings.localRepository}. This is working > with maven 2.2.1 and maven 3.0-beta-3. I was wondering the same thing - and I just ended up creating my own custom property. If you find a built-in property, please let us know.