初步解決leiningen配置到Eclipse中出錯的問題

來源:互聯網
上載者:User

標籤:

首先在網上搜到了一個國外網站的同樣問題的解決方案:

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的問題初步解決了。

初步解決leiningen配置到Eclipse中出錯的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.