maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Re: Re: [2nd edition] MAVEN dependencies' mechanism
Date Mon, 02 Feb 2004 05:56:11 GMT
>From 
http://maven.apache.org/reference/project-descriptor.html#dependencies

"The url of the dependency's homepage. 
This url will be provided to the user if the jar file cannot be downloaded 
from the central repository. "

It's NOT used for downloads.
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/



Alex Karasulu <aok123@bellsouth.net> wrote on 31/01/2004 01:41:46 AM:

> Until someone from the maven team clarifies everything is questionable
> but I had thought the URL tag is used just for the website link to the
> dependent library when generating docs.
> 
> It is not used to locate or download the resource.
> 
> Alex
> 
> > 
> > From: Daniel Bonniot <Daniel.Bonniot@inria.fr>
> > Date: 2004/01/30 Fri AM 05:31:58 EST
> > To: users@maven.apache.org
> > Subject: Re: [2nd edition] MAVEN dependencies' mechanism
> > 
> > > If I did not miss-understand the maven dependencies' mechanism in
> > > project.xml :
> > > 
> > > 
> > > With
> > >   <dependencies>
> > >     <dependency>
> > >       <id>DEPEND</id>
> > >       <version>1.0</version>
> > >       <url>http://address/plugin/</url>
> > >     </dependency>
> > >   </dependencies>
> > > Maven will first try to download 
"http://address/plugin/DEPEND/jars/DEPEND
> > > -1.0.jar" under 
$MAVEN_HOME_LOCAL/repository/DEPEND/jars/DEPEND-1.0.jar
> > 
> > (I'm new to Maven, so take this with a grain of salt)
> > 
> > I first had the same impression as you, but after investigation it 
seems that 
> > the url tag is just used to suggest that URL to the user if the 
download failed, 
> > so that the user can download it manually (e.g. if the license does 
not allow 
> > the jar to be put in a repository).
> > 
> > If you want a plugin to be downloaded from an alternate repository, 
what I know 
> > works is to declare it in a file build.properties in your home 
directory 
> > (~/build.properties on Unix, not sure about windows). Example:
> > 
> > 
maven.repo.remote=http://nice.sf.net/maven,http://www.ibiblio.org/maven
> > 
> > (ibiblio is the default maven repository)
> > 
> > Daniel
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message