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 dependency 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 dependency" Watch "Maven dependency" New topic

Maven dependency

Pawanpreet Singh
Ranch Hand

Joined: Jun 12, 2005
Posts: 264

How can i use local dependencies if maven is not able to download the dependencies.
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

Why can't your install of Maven download the appropriate artifacts? Is it a proxy server that is blocking you? Maven allows you to download through a proxy server if you give it the right configuration.

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

There are lots of solutions.

One you can create the directory structure yourself in your .mr/repository directory to match.

Run mvn with the arguments to add a jar to the local repository.

Create a mvn repository within your network and add a <repository> tag to your repositories that point to your "company" repository.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Maven dependency
It's not a secret anymore!