草庐IT

leiningen

全部标签

clojure - 在 Leiningen 中使用 redis-clojure 时出现问题

嘿,我是Clojure和Leiningen的新手,有点卡住了。我已经设法与Leiningen建立了一个项目。我能够将它编译成一个uberjar并运行repl。我还设法加载了一个名为aleph的依赖项来运行一个简单的并发网络服务器。我的下一步是使用redis-clojure访问redis。但是我被困在这里了。这是我的project.clj:(defprojectalpha"0.0.1-SNAPSHOT":description"Justanalphatestscript":mainalpha.core:dependencies[[org.clojure/clojure"1.2.0"][o

clojure - 在 Leiningen 中使用 redis-clojure 时出现问题

嘿,我是Clojure和Leiningen的新手,有点卡住了。我已经设法与Leiningen建立了一个项目。我能够将它编译成一个uberjar并运行repl。我还设法加载了一个名为aleph的依赖项来运行一个简单的并发网络服务器。我的下一步是使用redis-clojure访问redis。但是我被困在这里了。这是我的project.clj:(defprojectalpha"0.0.1-SNAPSHOT":description"Justanalphatestscript":mainalpha.core:dependencies[[org.clojure/clojure"1.2.0"][o

git - clojure 和 leiningen - 使用 git 存储库作为依赖项

是否可以让leiningen直接从git存储库(在github上)pull项目作为依赖项?将Bundler与Ruby结合使用,可以将gem映射到git存储库,从而实现依赖项目的快速开发和集成。更新基于已接受的答案,现在有一个用于管理git-deps的leiningen插件:https://github.com/tobyhede/lein-git-deps 最佳答案 我刚在clojurescriptone的project.clj中找到这个我觉得可能对你有帮助::git-dependencies[["https://github.com

git - clojure 和 leiningen - 使用 git 存储库作为依赖项

是否可以让leiningen直接从git存储库(在github上)pull项目作为依赖项?将Bundler与Ruby结合使用,可以将gem映射到git存储库,从而实现依赖项目的快速开发和集成。更新基于已接受的答案,现在有一个用于管理git-deps的leiningen插件:https://github.com/tobyhede/lein-git-deps 最佳答案 我刚在clojurescriptone的project.clj中找到这个我觉得可能对你有帮助::git-dependencies[["https://github.com

java - 环境变量 CLASSPATH <> Clojure 的 CLASSPATH。为什么?

这里我查看环境变量CLASSPATHdaniel@daniel-laptop:~/ps/clojure/projects/ring-tutorial$echo$CLASSPATH/home/daniel/ps/clojure/projects/ring-tutorial/src这里我检查java认为是什么。daniel@daniel-laptop:~/ps/clojure/projects/ring-tutorial$leinrepl克洛贾尔1.1.0user=>(System/getProperty"java.class.path")"src/:classes/:/home/dani

java - 环境变量 CLASSPATH <> Clojure 的 CLASSPATH。为什么?

这里我查看环境变量CLASSPATHdaniel@daniel-laptop:~/ps/clojure/projects/ring-tutorial$echo$CLASSPATH/home/daniel/ps/clojure/projects/ring-tutorial/src这里我检查java认为是什么。daniel@daniel-laptop:~/ps/clojure/projects/ring-tutorial$leinrepl克洛贾尔1.1.0user=>(System/getProperty"java.class.path")"src/:classes/:/home/dani

windows - Cursive 无法定位到什么 Leiningen 路径? (IntelliJ Clojure 集成开发环境)

我正在试用Cursive,这是一个基于IntelliJ的ClojureIDE。Leiningen控制台工作,但打印“找不到路径”错误。我似乎无法弄清楚它找不到什么。不过,莱宁根似乎正在发挥作用。知道如何找出它找不到的内容并修复它吗?我在Windows8.164位上,使用IntelliJ14.0.2和Cursive0.1.43。 最佳答案 我无法使用IntelliJ14.0.2(社区版)+Cursive0.1.43重现此问题。我的IntelliJ的Leiningen输出:C:\ProgramData\chocolatey\bin\le

java - 使用 Leiningen 部署 Clojure 应用程序

到目前为止,这是我的project.clj文件:(defprojectraj"0.0.1-SNAPSHOT":description"FIXME:writedescription":dependencies[[org.clojure/clojure"1.3.0"]]:keep-non-project-classestrue:mainraj.core)还有我的core.clj文件:(nsraj.core(:useraj.core))(defn-main[&args](println"HelloWorld!!!"))leinrun-mraj.core正常显示HelloWorld消息。所以接

java - leiningen 无法运行,因为 java class not found 异常

我最近——就像今天一样——对学习使用clojure进行编程产生了兴趣。现在,在安装了最新版本的javajdk并下载了leiningen脚本之后,我按照后者的安装说明进行操作,特别是在以下位置给出的说明:http:/www.lispcast.com/clojure-ubuntu。.现在,在运行leinversion并下载相关的jar文件后,程序退出并出现有关找不到类的错误。有问题的错误内容如下:Exceptioninthread"main"java.lang.ExceptionInInitializerErroratjava.base/java.lang.Class.forName0(N

Java 和 Clojure 与 Leiningen

是否可以在项目中使用leiningen轻松管理和编译原生Java类以及Clojure?我的工作水平相当低(使用nettynio),并且认为某些管道类实际上在构建代码和性能方面都更容易作为原始java处理。 最佳答案 从Leiningen2.x开始,:java-source-path已被替换为:java-source-paths,其值现在指定为vector而不是而不是一个字符串。查找Leiningen功能的完整(最新)文档的好地方是仔细阅读sampleprojectfile.在这种情况下,您将看到::java-source-paths