“lein help”输出了很多“_Problem loading_”

时间:2012-03-15 15:18:31

标签: clojure leiningen

通过下载脚本安装leiningen并遵循github指令。在Ubuntu / Linux机器上,我得到了很多“问题加载”,关于这个问题的谷歌搜索结果很少,这里是输出:

$lein help
Leiningen is a tool for working with Clojure projects.

Several tasks are available:
leiningen.classpath  Problem loading:
clean       Remove compiled class files and jars from project.
leiningen.compile  Problem loading: Could not initialize class leiningen.deps__init
leiningen.deploy  Problem loading: Could not initialize class leiningen.compile__init
leiningen.deps  Problem loading: Could not initialize class leiningen.deps__init
help        Display a list of tasks or help for a given task.
leiningen.install  Problem loading: Could not initialize class leiningen.jar__init
leiningen.interactive  Problem loading: Could not initialize class leiningen.compile__init
leiningen.jar  Problem loading: Could not initialize class leiningen.jar__init
leiningen.javac  Problem loading: Could not initialize class leiningen.classpath__init
new         Create a new project skeleton.
leiningen.plugin  Problem loading: Could not initialize class leiningen.jar__init
leiningen.pom  Problem loading: Could not initialize class leiningen.util.maven__init
leiningen.repl  Problem loading: Could not initialize class leiningen.compile__init
leiningen.retest  Problem loading: Could not initialize class leiningen.test__init
leiningen.run  Problem loading: Could not initialize class leiningen.compile__init
search      Search remote maven repositories for matching jars.
leiningen.test  Problem loading: Could not initialize class leiningen.test__init
leiningen.test!  Problem loading: Could not initialize class leiningen.deps__init
leiningen.trampoline  Problem loading: Could not initialize class leiningen.compile__init
leiningen.uberjar  Problem loading: Could not initialize class leiningen.uberjar__init
upgrade     Upgrade Leiningen to the latest stable release.
version     Print version for Leiningen and the current JVM.

Run lein help $TASK for details.
See also: readme, tutorial, copying, sample, deploying and news.

1 个答案:

答案 0 :(得分:1)

我常常采取措施'修复'留置权问题:

  • 运行lein upgrade(这可能没有帮助)
  • ~/.m2移至~/.m2.bak
  • 再次运行lein self-install
  • 下载最新副本