提问人:spaenigs 提问时间:10/5/2015 最后编辑:nhaspaenigs 更新时间:10/5/2015 访问量:178
使用 profile.clj 中指定的插件
Use plugins specified in profile.clj
问:
我在我的profile.clj中添加了一些插件。当我开始一个新的 repl 时,它们会正确地下载到我的 ,但我无法下载它们,因为这会抛出一个 .那么,如何在项目之外的默认 repl 中使用这些插件呢?.m2/repository directory
(use '...)
FileNotFoundException
- 赢 7
- clojure 1.7
- 莱宁根 2.5.3
jdk1.8.0_25
user=> (use 'hiccup.core)
FileNotFoundException Could not locate hiccup/core...
与新下载的咒语 1.9.0 相同
我知道这个错误有几个问题,但都是在项目的上下文中,而不是默认的 repl。或者我只能在项目 repl 中使用插件吗?
提前致谢!
这是我的profiles.clj
{:user
{
:java-cmd "C:\\Program Files\\Java\\jdk1.8.0_25\\bin\\java.exe"
:plugins [
[cider/cider-nrepl "0.8.1"]
[incanter "1.9.0"]
[hiccup "1.0.5"]
]
}
}
答:
2赞
leetwinski
10/5/2015
#1
您可能应该将 hiccup(和 incanter)添加到:d ependencies 部分
{:user
{
:java-cmd "C:\\Program Files\\Java\\jdk1.8.0_25\\bin\\java.exe"
:plugins [
[cider/cider-nrepl "0.8.1"]
]
:dependencies [
[incanter "1.9.0"]
[hiccup "1.0.5"]
]
}
}
另外,我想您最好为每个需要它们的项目向 project.clj 添加特定库,而不是将它们添加到全局 DEP。
评论