Reputation: 11907
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
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
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
Reputation: 91534
I created a clojure file that require
s 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