Hi Moritz, [EMAIL PROTECTED] wrote on 13/09/2002 08:06:10 AM:
> Hello List, > > I am just starting to use (and get used to) Maven. Slowly I begin to > understand how it works. Cool. We're a chatty lot :) Feel free to keep on posting to the user list about anything. We know usability and documentation need some work. > I just started to write a project.xml file for my project. The biggest > problem I have, is to understand how the <dependencies> tag works. The > questions I have are: > > o How can I determine, which jars are in the (remote) repository? Not easily. There's no plugin to list the repository contents, or even a documented way to get new jars into the repository. Your best bet is: > Right now, I am in a trial-and-error phase; I look into my local > repository, and try to > figure out, which jar will be possibly in the remote repository. Yep, this is one way. A web browser will tell you if there's a jar there or not, e.g. http://www.ibiblio.org/maven/junit/jars/ will list the jars for JUnit. > Example (1): > My application needs junit. When I started the project, I downloaded > junit.jar (version 3.8.1). So, my dependency tag looked like: > > <dependency> > <id>junit</id> > <version>3.8.1</version> > <url>http://www.junit.org/</url> > </dependency> > > This didn't work, because the version 3.8.1 doesn't exist in the remote > repository. Instead the 3.8 version was available. I just found it 'by For any jar you'd like in the repository, post a request up here and someone will get back to you. > Example (2): > My application needs jakarta-commons-net (the FTP client). This jar > doesn't seem to be available in the remote repository > (http://www.ibiblio.org/maven/jakarta-commons-net/jars/jakarta-commons- > net-1.0.0-dev.jar). > > If this file isn't in the remote repository, how do I put my own jar > into a place, where Maven finds it? The 'remote' repositories are just a list of URLs, separated by commas. One of those URLs could be on your hard drive with a file:// protocol. > The other question is: > > o Is it possible to get just the latest version of a jar? > I don't want to tell Maven which version to download. It should take > just the latest. That's what -SNAPSHOT is for. It's an unreleased development version. There's currently no way in the dependencies to specify the latest released jar, though. > Any pointers will be appreciated. > Thank you in advance. Hope this helps, -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au Developers: http://adslgateway.multitask.com.au/developers -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
