Hello List,

I am just starting to use (and get used to) Maven. Slowly I begin to  
understand how it works.

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?
   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.

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  
chance' (wasn't that difficult...).

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 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.


Any pointers will be appreciated.
Thank you in advance.

-Moritz.


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

Reply via email to