Leiningen中有一个独立的Clojure包吗? [英] Is there a standalone Clojure package within Leiningen?

查看:151
本文介绍了Leiningen中有一个独立的Clojure包吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用此脚本安装leiningen之后 https://raw.github.com/ techomancy / leiningen / preview / bin / lein ,我可以使用 repl 键入 lein repl ,所以我认为 clojure 已由 leiningen 安装。

After installing leiningen with this script https://raw.github.com/technomancy/leiningen/preview/bin/lein , I can use the repl by typing lein repl, so I think the clojure has already been installed by leiningen.

我需要从官方网站重新下载clojure的JAR吗?

Do I need to download the JAR of the clojure again from the offical site?

如果没有需要要执行此操作, cloying 的JAR文件取决于

If there's no need to do this, where's the JAR file of clojure that leiningten depends on?

推荐答案

我发现lein是安装它,然后依赖于Clojure的特定版本导致该版本被提取,并且.jar文件卷起在maven存储库。

What I've found with lein is installing it and then depending on a specific version of Clojure causes that version to be fetched, and the .jar file winds up in the maven repository.

(defproject repl-test "0.0.1-SNAPSHOT"
  :description "TODO: add summary of your project"
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [org.clojure/clojure-contrib "1.2.0"]
                 [clojure-csv/clojure-csv "1.3.2"]
                 [org.clojure/tools.cli "0.1.0"]
                 [util "1.0.2-SNAPSHOT"]
                 [clj-http "0.1.3"]]
   :aot [repl-test.core]
   :main repl-test.core)

我不知道Clojure是如何与lein打包的,但我知道从看lein build,它导致Clojure的版本在:dependencies 获取(下载)。

I'm not sure how Clojure is packaged with lein, but I do know from watching a lein build that it causes the version of Clojure in :dependencies to be fetched (downloaded).

lein是如此的好,我实际上是卸载默认Clojure,因为当Clojure进入一个新修订。

lein is so good, that I actually un-installed default Clojure, because having lein is less of a pain when Clojure goes into a new revision.

这篇关于Leiningen中有一个独立的Clojure包吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆