jshen
jshen

Reputation: 11907

How do I get intellij's clojure console to load the dependencies defined in leiningen?

I've installed the "la Clojure" and "leiningen" plugins. I've created a clojure project and added the lib/ folder as a library in my project. With this done the editor knows about the libraries and if I 'run' a clojure file it successfully loads the dependencies, but if I start a console within intellij it doesn't load the dependencies. How do I get the console to load them?

Upvotes: 2

Views: 1237

Answers (3)

Yi Wang
Yi Wang

Reputation: 199

I use

lein pom

to generate pom.xml if it does not already exists and let idea to use maven to track the dependencies

Upvotes: 1

Lispnik
Lispnik

Reputation: 709

I open the project settings, add lib and lib/dev as JAR directories (IntelliJ scans them for changes and updates the classpath automatically). This works with the Clojure console.

Upvotes: 1

Arthur Ulfeldt
Arthur Ulfeldt

Reputation: 91534

I created a clojure file that requires all of my source files. then from the repl screen I (load "start-repl.clj"). It's not a really good solution because of the manual steps but it gets me hacking...

Upvotes: 0

Related Questions