Something like this can work but you need to have the proper path in the local maven_repository. You have the repository named local. Inside the repo, every artifact has a groupID (the first part of the dependency), the artifactID, and the version. If you had a dependency like:
[SSAM "0.1.0"] the jar should be at: /Users/rollio/projects/rollio/nlp-housing/maven_repository/SSAM/SSAM/0.1.0/SSAM-0.1.0.jar where under the repo, it's at groupID/artifactID/artifactID-version.jar You don't need to specify that SSAM is in local - Maven will check all repos for it and find it in local. I've gotten this to work before and it's definitely possible. I feel like I'm forgetting some other detail though. I'm not sure if you need a pom.xml or any of the other repo metadata in that directory structure. On Sunday, September 13, 2015 at 6:54:34 PM UTC-5, Lawrence Krubner wrote: > > I am lazy so I was hoping to find a simple way to do this. My co-worker > has written a complex app in Java which does natural language processing. > He delivered it to me as an uberjar. My app is suppose to call his app as a > library. > > The path to the file is: > > /Users/rollio/projects/rollio/nlp-housing/maven_repository/SSAM.jar > > I was hoping I could do something like this in my project.clj: > > [local/SSAM] > > and: > > :repositories {"local" ~(str (.toURI (java.io.File. > "maven_repository")))} > > but when I do: > > lein uberjar > > I get: > > (Could not find artifact SSAM:SSAM:jar:jar in central ( > http://repo1.maven.org/maven2/)) > (Could not find artifact SSAM:SSAM:jar:jar in clojars ( > https://clojars.org/repo/)) > (Could not find artifact SSAM:SSAM:jar:jar in local > (file:/Users/rollio/projects/rollio/nlp-housing/maven_repository/)) > > Is there a way I can simply consume that, or do I have to unpack it and > install it to ./.m2 and all of that jazz? > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.