The <url> element of a dependency does not tell Maven where to obtain
the dependency.  It is merely used in the error message when Maven
cannot locate the dependency in the local repository nor in any remote
repository.  It is supposed to indicate where you should be able
manually download the dependency, as indicated in your output:

        jxip.jar (try downloading from /home/popol/gkls/xip/lib/)

What you need to do is add the following to your project.properties:

maven.jar.override=on
maven.jar.jxip=${basedir}/xip/lib/jxip.jar

Your dependency can be reduced to the following:

<dependency>
  <groupId>jxip</groupId>
  <artifactId>jxip</artifactId>
</dependency>


> -----Original Message-----
> From: Michael Niemaz [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 09, 2004 7:15 AM
> To: Maven Users List
> Subject: Re: Local dependencies
> 
> Recall the local dependency, I tried what you suggested and It did
> not work:
> 
>     Attempting to download jxip.jar.
>     WARNING: Failed to download jxip.jar.
>     The build cannot continue because of the following unsatisfied
>     dependency:
>      
>     jxip.jar (try downloading from /home/popol/gkls/xip/lib/)
>      
>     Total time: 1 seconds
>     Finished at: Tue Nov 09 15:11:14 CET 2004
> 
> Although the jar file jxip.jar is indeed located under 
> /home/popol/gkls/xip/lib/
> ;-(
> Here's my project's dependencies declaration:
> 
>         <dependency>
>           <groupId>jxip</groupId>
>           <artifactId>jxip</artifactId>
>           <version></version>
>           <url>${basedir}/xip/lib/</url>
>           <jar>jxip.jar</jar>
>         </dependency>
> 
> I even tried to put the jar fullpath in the jar element ...
> 
> Any ideas?
> 
> thx,
> 
> --mike
> 
> Brett Porter wrote:
> 
> >The download report is based on the <versions> element in the
> >project.xml file, I believe.
> >
> >
> >On Tue, 09 Nov 2004 12:19:19 +0100, Michael Niemaz
> ><[EMAIL PROTECTED]> wrote:
> >  
> >
> >>Thanx a lot!
> >>Also, I kind of have difficulties to deploy my stuff with the
> >>download html link being updated. All it says is that there 
> is nothing
> >>to download. Any idea? bug?
> >>
> >>--mike
> >>
> >>
> >>
> >>Bulent Erdemir wrote:
> >>
> >>    
> >>
> >>>check out the <jar> tag in the <dependency> element. There you can
> >>>specify a jar file name. Also check out the maven.jar.override
> >>>directive.
> >>>
> >>>
> >>>On Tue, 09 Nov 2004 11:54:36 +0100, Michael Niemaz
> >>><[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>      
> >>>
> >>>>Hi,
> >>>>   Is it possible to specify a local dependency instead 
> of a remote one?
> >>>>   The reason is that some resources that my project is 
> using are, for
> >>>>the moment,
> >>>>   not to be acceesible by anyone from outside ... but 
> i'd still want
> >>>>to use maven
> >>>>   to ease the ditribution process of my project.
> >>>>   I looked at the <dependencies> element but couldn't 
> figure out how
> >>>>to specify a
> >>>>   local path.
> >>>>   Any idea?
> >>>>
> >>>>Thanx,
> >>>>
> >>>>--mike
> >>>>
> >>>>----------------------------------------------------------
> -----------
> >>>>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]
> >
> >
> >.
> >
> >  
> >
> 
> ---------------------------------------------------------------------
> 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