This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven dependency" Watch "Maven dependency" New topic
Author

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
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven dependency
 
Similar Threads
Can not load JDBC driver named 'org.apache.derby.jdbc.ClientDriver'
rich:tree working now... all the work has finally paid off - THANKS
struts2-maven File not found exception problem
Transitive dependencies
MonetaryAmount Class