On Fri, Nov 23, 2012 at 12:05 PM, Laird Nelson <[email protected]> wrote: > On Fri, Nov 23, 2012 at 11:22 AM, Benson Margulies > <[email protected]>wrote: > >> You just name the G/A/V and no relativePath, and Maven will download >> just as it would a dependency. >> > > Well, not exactly; if there is no <relativePath> element present, then > Maven behaves as though <relativePath>../pom.xml</relativePath> were > specified. If that file is a working copy that has not been refreshed from > the SCM, then problems can ensue.
You only ever need an empty relativePath element when there is an unwanted pom sitting in .. that you need to discourage Maven from paying attention to. > > I recall that someone mentioned specifying a relative path like this: > > <relativePath/> > > > ...and that that was the only way to force Maven to truly resolve the pom > from the repository, but I don't know if this is in fact true. > > Best, > Laird > > -- > http://about.me/lairdnelson --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
