Advertisement
Guest User

Untitled

a guest
Sep 27th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. [f@quad 397.1G ~/toopzi/] $ lein localrepo coords /tmp/myjar-1.0.6.jar
  2. /tmp/myjar-1.0.6.jar myjar/myjar 1.0.6
  3. [f@quad 397.1G ~/toopzi/] $ lein localrepo coords /tmp/myjar-1.0.6.jar | xargs lein localrepo install
  4. [f@quad 397.1G ~/toopzi/] $ ls -l ~/.m2/repository/myjar/
  5. total 4
  6. drwxr-xr-x 3 f f 4096 Sep 27 22:26 myjar
  7. [f@quad 397.1G ~/toopzi/] $ ls -l ~/.m2/repository/myjar/myjar/
  8. total 8
  9. drwxr-xr-x 2 f f 4096 Sep 27 22:26 1.0.6
  10. -rw-r--r-- 1 f f 290 Sep 27 22:26 maven-metadata-local.xml
  11. [f@quad 397.1G ~/toopzi/] $ ls -l ~/.m2/repository/myjar/myjar/1.0.6/
  12. total 20028
  13. -rw-r--r-- 1 f f 145 Sep 27 22:26 _maven.repositories
  14. -rw-r--r-- 1 f f 20501480 Sep 17 20:36 myjar-1.0.6.jar
  15.  
  16. [f@quad 397.1G ~/toopzi/] $ lein localrepo list
  17. clojure-complete (0.2.1)
  18. slingshot (0.8.0)
  19. org.clojure/core.cache (0.6.1)
  20. lein-localrepo (0.4.1)
  21. lein-newnew (0.3.5)
  22. myjar (1.0.6)
  23. org.clojure/clojure (1.3.0, 1.4.0)
  24. quoin (0.1.0)
  25. bultitude (0.1.7)
  26. org.clojure/tools.nrepl (0.2.0-beta9)
  27. stencil (0.3.0)
  28. scout (0.1.0)
  29. [f@quad 397.1G ~/toopzi/] $
  30.  
  31. At this point it works fine with the following project.clj (notice the 'slingshot' dependency):
  32.  
  33. (defproject toopzi "0.1.0-SNAPSHOT"
  34. :description "FIXME: write description"
  35. :url "http://example.com/FIXME"
  36. :license {:name "Eclipse Public License"
  37. :url "http://www.eclipse.org/legal/epl-v10.html"}
  38. :dependencies [[org.clojure/clojure "1.4.0"]
  39. [slingshot "0.8.0"]
  40. ])
  41. But as soon as I add:
  42.  
  43. (defproject toopzi "0.1.0-SNAPSHOT"
  44. :description "FIXME: write description"
  45. :url "http://example.com/FIXME"
  46. :license {:name "Eclipse Public License"
  47. :url "http://www.eclipse.org/legal/epl-v10.html"}
  48. :dependencies [[org.clojure/clojure "1.4.0"]
  49. [slingshot "0.8.0"]
  50. [myjar "1.0.6"]
  51. ])
  52.  
  53. I get:
  54.  
  55. [f@quad 397.1G ~/toopzi/] $ lein deps
  56. Could not transfer artifact myjar:myjar:pom:1.0.6 from/to central (http://repo1.maven.org/maven2): repo1.maven.org
  57. Could not transfer artifact myjar:myjar:pom:1.0.6 from/to clojars (https://clojars.org/repo/): clojars.org
  58. Check :dependencies and :repositories for typos.
  59. It's possible the specified jar is not in any repository.
  60. If so, see "Free-floating Jars" under http://j.mp/repeatability
  61. Could not resolve dependencies
  62. [f@quad 397.1G ~/toopzi/]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement