File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven dependencies" Watch "Maven dependencies" New topic

Maven dependencies

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167

I'm trying to compile my project using Maven, and I got a couple of JAR dependencies in my project. One of them is my personal lib, so I couldn't download it from any remote server. So, how do I set things up in my project.xml?

For example, my lib is X:\mylibs\foo.jar and I have to tell Maven to use it. How to do it? Meanwhile I'll STFM


Tiago Fernandez
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
You can simply put it in your maven repository ($HOME/.maven/repository).

- Peter
Max Loukianov

Joined: Oct 07, 2003
Posts: 3
You have an option of putting it into your local Maven repository and then describing the dependency in your project.xml file:


then the jar file will have to be located at:


Hope this helps.
--------------- is hosted on JBoss at
[ January 15, 2005: Message edited by: Max Loukianov ]

--------------------<br /><a href="" target="_blank" rel="nofollow"></a> is hosted on JBoss at <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Maven dependencies
jQuery in Action, 3rd edition