首先在网上搜到了一个国外网站的同样问题的解决方案:
http://stackoverflow.com/questions/21886271/exception-when-launching-new-project-with-lein-new
- Are you using lein 2.3.x+? if not try lein upgrade
- Are you running lein repl in the proper directory?
- does lein deps succeed in downloading everything it needs?
- does lein version work (ie: is leiningen completely broken) if it does not work, delete ~/.lein and run it again.
发现自己的leiningen版本是2.0.0,于是去官网的releases里面找到了最新的2.5然后下载:https://github.com/technomancy/leiningen/releases
然后找到leiningen通过Eclipse的run里面的External tool来配置的解决方法:http://blog.csdn.net/xiejianming/article/details/6950630
不过我在配置Location与Working directory时用的是绝对地址,还有在配置Arguments的时候一定要写成“new ${project_name}”,不然会报之前的那个错误。
目前run之后会有如下提示:
Generating a project called jim-cloud-server based on the ‘default‘ template.
The default template is intended for library projects, not applications.
To see other templates (app, plugin, etc), try `lein help new`.
这个应该不是配置问题了,所以leiningen配置到Eclipse的问题初步解决了。
时间: 2024-10-26 19:00:53