Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install JAR from remote repo (clojar)

Tags:

maven

jar

clojure

I want to download and install this Clojure library but cannot for the life of me figure it out. I researched Maven, but couldn't get it to find the repo. How can I easily install a Clojure library onto my machine?

like image 288
Chris Avatar asked May 30 '12 01:05

Chris


2 Answers

You could add the repository containing this jar to your pom or settings file and specify the relevant jar as a dependency.

<repository>
  <id>clojars.org</id>
  <url>http://clojars.org/repo</url>
</repository>
...
<dependency>
   <groupId>clj-http</groupId>
   <artifactId>clj-http</artifactId>
   <version>0.4.1</version>
</dependency>
like image 128
Raghuram Avatar answered Sep 28 '22 07:09

Raghuram


download https://clojars.org/repo/clj-http/clj-http/0.4.1/clj-http-0.4.1.jar

mvn install:install-file -DgroupId=clj-http -DartifactId=clj-http -Dversion=0.4.1 -Dpackaging=jar -Dfile=clj-http-0.4.1.jar
like image 28
number23_cn Avatar answered Sep 28 '22 07:09

number23_cn