下载脚本并按照github指令安装leiningen。在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.
我"修复"lein问题的常用步骤:
- 运行
lein upgrade
(此处可能没有帮助) - 将
~/.m2
移动到~/.m2.bak
- 再次运行
lein self-install
- 下载最新副本