On Mon, 28 Mar 2011 18:10:31 -0700
Andy Fingerhut <[email protected]> wrote:
> Changing subject line for this one.
I almost did that myself.
> On Mar 28, 2011, at 5:38 PM, Mike Meyer wrote:
> >
> > Consider this a features request for cake/leiningen:
> > 1) A task to search clojars.
> > 2) A task take a name from #1 and add the appropriate data to project.clj.
> > 3) Extend the "deps" task to install libraries required by any dependency.
>
> I am not claiming that Leiningen does #1 or #2 already, but in case you were
> unaware, you can go to clojars.org, type something like "hadoop" in the
> search box at the upper right, and see a list of matching packages.
> Clicking on one of them gives me text I can copy and paste into a Leiningen
> project.clj file, or into a Maven pom.xml file. Here is the text shown for
> one version of hadoop-core that was shown when I searched for hadoop:
Yes, I knew about that. This is the API that an IDE and/or dependency
manager (i.e. - leiningen) needs to use to do #1 and #2. It is not,
however, a replacement for an IDE or dependency manager actually doing
those things.
> [org.apache.hadoop/hadoop-core "0.20.2-dev"]
>
> If I add that appropriately to a project.clj file created from making a new
> "empty except for clojure core project" with "lein new <name>", save it, and
> type "lein deps", it does do #3, i.e. adds hadoop-core and everything that it
> requires. They are all put into the lib directory in the project. This is
> with Leiningen 1.5.0, but that behavior has worked for several versions now.
> I believe it is implemented under the covers via Maven's dependency
> management.
>
> Have you tried "lein deps" and found that it failed to install libraries
> required by a dependency you had already added to your project.clj file?
Cool. This one is my bad - I had gotten the idea that it wouldn't find
dependencies, and had always filled them in by hand. And I had figured
this would be the hard one of the three to do.
<mike
--
Mike Meyer <[email protected]> http://www.mired.org/consulting.html
Independent Software developer/SCM consultant, email for more information.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en