Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manually download Maven Dependencies

Tags:

maven

I am new to Maven. When I try to run mvn install [for Kafka Spout - A Storm spout implementation for Kafka], maven tries to fetch the dependencies [various pom's etc.]. How can I manually download those [If suppose one of the sites like conjars.org/repo cant be accessed using CLI for me even with appropriate proxy enabled]? What I mean is where does maven place them so that the runtime finds it? Is it all in the .m2/ folder? Bit confused with the process.

The exact error I get:

Access denied to: http://conjars.org/repo/com/twitter/kafka_2.9.2/0.7.0/
kafka_2.9.2-0.7.0.pom , ReasonPhrase:Forbidden.

I am not much interested in as to how to get rid of this error but I want to download the stuff manually. I don't use Eclipse.

like image 323
Yavar Avatar asked Jun 26 '13 06:06

Yavar


People also ask

How do I download missing Maven dependencies?

You can find this in Window > Preferences > Maven > User Settings , and then point Global Settings to your external maven settings. xml . Then i removed the broken projects and re-added them, and the Maven Dependencies library appeared again. Save this answer.

How do I manually add dependencies?

Click the dependency you want to add to your application. You can use Ctrl+click to select multiple non adjacent dependencies, or Shift+click to select multiple adjacent dependencies. Drop the dependencies to the Manual Dependencies folder of the application. Save the application.


1 Answers

You should download JAR manually and install it to your local repo using maven install:install-file. See this post for details

http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/

like image 62
dino.keco Avatar answered Oct 19 '22 16:10

dino.keco