Laurent PETIT <laurent.pe...@gmail.com> writes: > Is it possible in maven or leiningen to place a dependency not on a > specific version of a pre-built artifact, but rather on a specific scm > revision (or just head, aka SNAPSHOT for binary releases) of a > project's source repository, and having the machinery understand it > has to first locally build the dependency into a jar/whatever in the > process of compiling one's project ?
When you upload to clojars a version number ending in SNAPSHOT, I believe it is replaced with the current timestamp on the server. See http://clojars.org/repo/org/danlarkin/clojure-json/1.1-SNAPSHOT/ for an example. So if you're just interested in pinning yourself to a specific SNAPSHOT rather than just any one out there, that would be the trick. But there's no mechanism for building it yourself, though it's quite easy to do manually. > Alternatively, is it possible to at least depend on a "source" version > of the dependency, having it compiled on the fly locally when > compiling the main project ? (so that one could benefit from AOP, and > this could also solve the problem of a library mixing java and clojure > source) ? I've thought about this, and I think it's a great idea. I will probably implement it eventually, but it might take a while since I don't have any projects that would benefit from it right now. So it's a great opportunity for a potential contributor to step up. =) -Phil -- 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