Ok I figured out what was happening.  FYI ${basedir} doesn't seem to
work (though it would be nice if I could get it to work).

The problem comes down to platform specifics.  Thus on Windows the URL
looks like:
      <url>file://..\..\fx_3p</url>

On unix/linux the URL should probably look like: (note haven't tested
this but it logically follows given the Windows URL)
      <url>file://../../fx_3p</url>


Side question... ${basedir} should resolve to the location of the
pom.xml right?  So what does it resolve to if I used ${basedir} in the
parent pom.xml that is one level higher then the project that references
it?

IE dir structure

Fx_toolkit
    Pom.xml       <-- parent pom
    projectA
        pom.xml   <-- child pom referencing parent pom


Thanks for the help


MAR



-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 4:31 PM
To: Maven Users List
Subject: Re: Configuring pom.xml to use a local repo (rather than a
remote http repo) (m2)

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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to