Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [f@quad 397.1G ~/toopzi/] $ lein localrepo coords /tmp/myjar-1.0.6.jar
- /tmp/myjar-1.0.6.jar myjar/myjar 1.0.6
- [f@quad 397.1G ~/toopzi/] $ lein localrepo coords /tmp/myjar-1.0.6.jar | xargs lein localrepo install
- [f@quad 397.1G ~/toopzi/] $ ls -l ~/.m2/repository/myjar/
- total 4
- drwxr-xr-x 3 f f 4096 Sep 27 22:26 myjar
- [f@quad 397.1G ~/toopzi/] $ ls -l ~/.m2/repository/myjar/myjar/
- total 8
- drwxr-xr-x 2 f f 4096 Sep 27 22:26 1.0.6
- -rw-r--r-- 1 f f 290 Sep 27 22:26 maven-metadata-local.xml
- [f@quad 397.1G ~/toopzi/] $ ls -l ~/.m2/repository/myjar/myjar/1.0.6/
- total 20028
- -rw-r--r-- 1 f f 145 Sep 27 22:26 _maven.repositories
- -rw-r--r-- 1 f f 20501480 Sep 17 20:36 myjar-1.0.6.jar
- [f@quad 397.1G ~/toopzi/] $ lein localrepo list
- clojure-complete (0.2.1)
- slingshot (0.8.0)
- org.clojure/core.cache (0.6.1)
- lein-localrepo (0.4.1)
- lein-newnew (0.3.5)
- myjar (1.0.6)
- org.clojure/clojure (1.3.0, 1.4.0)
- quoin (0.1.0)
- bultitude (0.1.7)
- org.clojure/tools.nrepl (0.2.0-beta9)
- stencil (0.3.0)
- scout (0.1.0)
- [f@quad 397.1G ~/toopzi/] $
- At this point it works fine with the following project.clj (notice the 'slingshot' dependency):
- (defproject toopzi "0.1.0-SNAPSHOT"
- :description "FIXME: write description"
- :url "http://example.com/FIXME"
- :license {:name "Eclipse Public License"
- :url "http://www.eclipse.org/legal/epl-v10.html"}
- :dependencies [[org.clojure/clojure "1.4.0"]
- [slingshot "0.8.0"]
- ])
- But as soon as I add:
- (defproject toopzi "0.1.0-SNAPSHOT"
- :description "FIXME: write description"
- :url "http://example.com/FIXME"
- :license {:name "Eclipse Public License"
- :url "http://www.eclipse.org/legal/epl-v10.html"}
- :dependencies [[org.clojure/clojure "1.4.0"]
- [slingshot "0.8.0"]
- [myjar "1.0.6"]
- ])
- I get:
- [f@quad 397.1G ~/toopzi/] $ lein deps
- Could not transfer artifact myjar:myjar:pom:1.0.6 from/to central (http://repo1.maven.org/maven2): repo1.maven.org
- Could not transfer artifact myjar:myjar:pom:1.0.6 from/to clojars (https://clojars.org/repo/): clojars.org
- Check :dependencies and :repositories for typos.
- It's possible the specified jar is not in any repository.
- If so, see "Free-floating Jars" under http://j.mp/repeatability
- Could not resolve dependencies
- [f@quad 397.1G ~/toopzi/]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement