Creating a new Counterclockwise project
Now that we've tried out Leiningen, we are ready to build our first project in Eclipse IDE using the Counterclockwise plugin:
- In Eclipse IDE, right-click on an empty spot in
Package Explorerand chooseNew | Other.... - The
Select a wizarddialog appears. ChooseClojure | Clojure Projectand click onNext. - Choose the
exploring-monadsproject name. Make sure thedefaultLeiningen template is selected:

- Click on
Finishto generate the project.
Note
Note that you can choose any other template supported by Leiningen here. There's one caveat: Counterclockwise's built-in Leiningen version is used to generate projects, and this version can be out of date. As we will see later in this chapter, this can be resolved by creating a project on the command-line.
The creation process of the project will take some time. When finished, take a look at the created project by expanding it in Package Explorer. Its directory structure should look familiar.
Open the src/exploring_monads...