初步解决leiningen配置到Eclipse中出错的问题

首先在网上搜到了一个国外网站的同样问题的解决方案:

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的问题初步解决了。

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。