Skip to content

Clojure koans in Eclipse

Florent Delannoy edited this page Jun 23, 2015 · 1 revision

You can use Eclipse with the Counterclockwise plugin to work through the Clojure Koans.

To do so, we'll need to import the Clojure Koans project into Eclipse, but Eclipse cannot import "raw" Clojure projects. There are two ways of getting around this:

Using pom.xml

  • Run lein pom: this will generate a Maven pom.xml file
  • In Eclipse, Import > Existing Maven Project and you're all set!
  • Add [no-man-is-an-island/lein-eclipse "2.0.0"] as a Leiningen plugin, either in Clojure-koans' project.clj or in a global ~/.lein/profiles.clj so that it is available for all Leiningen projects
  • Run lein deps and lein eclipse: this will create a .project and a .classpath file
  • In Eclipse, Import > Existing Project and you're all set!

Resources:

Clone this wiki locally