Relative paths won't work - try including ${basedir} in the repository URL.- Brett On 10/8/05, Russell, Mark <[EMAIL PROTECTED]> wrote: > A little further info... > > When I try to use a local repo it seems to be able to find the .pom for > the dependency, but can never seem to find/download the jar. > > The message I get: > Downloading: > file://../../fx_3p/commons-logging/commons-logging/1.0.4/commons-logging > -1.0.4.jar > [WARNING] Unable to get resource from repository local > (file://../../fx_3p) Downloading: > http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/comm > ons-logging-1.0.4.jar > 37K downloaded > > So you see it can't get it from the locally defined repo, but it can get > it from the remote. I know it is reading the .pom for commons-logging > because it also attempts to get the dependencies listed in the .pom. > > Am I doing something wrong or did I simply encounter a defect in maven > that hasn't been fixed yet? > > > > MAR > > > -----Original Message----- > From: Russell, Mark [mailto:[EMAIL PROTECTED] > Sent: Friday, October 07, 2005 2:00 PM > To: Maven Users List > Subject: Configuring pom.xml to use a local repo (rather than a remote > http repo) (m2) > > At one point with maven 1.0 you could have the repository local and it > would fetch from there. How can you setup the pom.xml in maven 2 to do > something similar? > > As an example, imagine the following directory structure: > > fx_toolkit > pom.xml > projectA > pom.xml > projectB > pom.xml > fx_3p (repository) > > How can I get the pom's to all reference the fx_3p repository? I've > tried setting the URL to "file://../fx_3p" in the fx_toolkit/pom.xml > file and it can't find it. I've also tried skipping the "file://" with > the expected failure. I've even tried adding a repository entry in the > projectA/pom.xml with a "file://../../fx_3p" URL and that's no good > either. > > Only reason I even bring this up is that our company wants to basically > move our entire maven repository into clearcase and thus the repo would > be basically local. > > > Mark Russell > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
