Hi,

Thanks for the answers. But this is not what i will do. I know about overriding jars 
in project.properties ;-)

My problem is, that we have one main project and many projects dependend on the main 
project (and their jars). Thus I will store all jars from the main project in the 
users local repository, thus the user can use maven with a dependency to the 
main-project using the required jars from the local repository.

If it is not possible to give maven a http based url for a dependency, one would add 
the dependent jar to the local cvs (this is what we have done, with private jars). 
Then it should be possible to reference the jars from the cvs via file based urls, so 
that they can be copied into the local repository. Later if the depenedency has a 
download url you can simple change the url in the dependency-descriptor of the project 
and maven will then use this location to download new version.

I have also searched if there is a goal to store some jars into a local repository, 
where i can give the goal a url to use for copying the jar into the repository. But i 
cannot find such thing. The only goal i found was repository:install where i can give 
a artifact (why not artifactID?) and userId. But this goal tries to download the jar 
from ilibio where the jars are not installed.

Any other ideas?

Thanks and regards,

Thomas Wabner

> Hi Thomas,
> 
> see page:
> http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependencies
> 
> that chapter give you a possibility to overwrite your dependency setting.
> Put following in your project.xml file the line's:
> 
> =====================================
> maven.jar.override = on
> maven.jar.ristretto = ${basedir}/lib/ristretto-1.0pre1.jar
> =====================================
> 
> Bye
> Rico
> 
> ----- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 11, 2004 2:57 PM
> Subject: dependency
> 
> 
> Hello,
> 
> following problem:
> 
> i have project where any jars currently stored under <projectdir>/lib
> 
> Any of the required jars cannot downloaded via url in fact there are not yet
> released. We have these jars only in the lib-dir of the project.
> Now i put following dependency in my project.xml file:
> <dependency>
>   <groupId>columba</groupId>
>   <artifactId>ristretto</artifactId>
>   <version>1.0pre1</version>
>   <url>file://${basedir}/lib/</url>
> </dependency>
> 
> But maven dosn't download the ristretto-1.0pre1.jar from the lib -dir into
> my maven repository.
> 
> What can i do? It is a correct url and i don't have any idea how to store
> the required jars into the users local repository.
> 
> Can anyone help me?
> 
> Many thanks and greetings
> 
> Waffel (alias Thomas Wabner)
> 
> -------- SIgnature --------
> Thomas Wabner
> wissenschaftlicher Mitarbeiter
> Karl-Liebknechtstrasse 145
> 04277 Leipzig
> HTWK Leipzig
> 
> ---------------------------
> Thomas Wabner
> CIO
> Ancoso Development GMBH
> 
> ---------------------------
> PGP Key:
> http://search.keyserver.net:11371/pks/lookup?op=get&search=0x48681715&template=netenextract,netennomatch,netenerror
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 


-------- SIgnature --------
Thomas Wabner
wissenschaftlicher Mitarbeiter
Karl-Liebknechtstrasse 145
04277 Leipzig
HTWK Leipzig

---------------------------
Thomas Wabner
CIO
Ancoso Development GMBH

---------------------------
PGP Key:
http://search.keyserver.net:11371/pks/lookup?op=get&search=0x48681715&template=netenextract,netennomatch,netenerror


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

Reply via email to