File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven dependencies

 
Tiago Fernandez
Ranch Hand
Posts: 167
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Tks.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can simply put it in your maven repository ($HOME/.maven/repository).

- Peter
 
Max Loukianov
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have an option of putting it into your local Maven repository and then describing the dependency in your project.xml file:

<dependency>
<groupId>your_company<groupId>
<artifactId>your_library_name</artifactId>
<version>1.3</version>
</dependency>

then the jar file will have to be located at:

maven/repository/your_company/jars/your_library_name-1.3.jar

Hope this helps.

max@jbossfaq.com
---------------
http://www.jbossfaq.com is hosted on JBoss at http://www.thebeanfactory.com
[ January 15, 2005: Message edited by: Max Loukianov ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic