Questions tagged [leiningen]

Leiningen is a build automation and dependency management tool for Clojure projects

Leiningen is a project automation tool for Clojure, where you describe your project with Clojure. Leiningen is extensible through plugins and provides functionality to build complex projects and manage dependencies.

1285 questions
21
votes
3 answers

lein REPL server launch timed out

in a liberator based clojure project we are using datomic as DB. After migrating our local dev DB to a S3 hosted one and adding the needed dependencies on our project.clj we cannot launch the REPL but the Liberator stack runs fine through lein…
Jaime Agudo
  • 8,076
  • 4
  • 30
  • 35
20
votes
3 answers

running clojure with leiningen

I made a project named my-stuff and added to the project.clj so it looks like this (defproject my-stuff "0.1.0-SNAPSHOT" :description "Testing lein" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url…
user2150839
  • 483
  • 5
  • 11
20
votes
1 answer

shutdown hook doesn't fire when running with "lein run"

I have the following code: (ns test-hook.core) (defn -main [] (.addShutdownHook (Runtime/getRuntime) (Thread. #(println "shutdown"))) (println "start") (doseq [i (range 1 6)] (Thread/sleep 1000) (println i))) and the following…
Samus_
  • 2,903
  • 1
  • 23
  • 22
19
votes
2 answers

How can I set up leiningen to work with multiple projects?

I have multiple, separate leiningen projects that ostensibly could depend on one-another. Example: ~/projects/mywebapp (my own project) ~/projects/noir (a clone of the github repo) ~/projects/clojureql (a clone of the github repo) I want to…
Eric Normand
  • 3,806
  • 1
  • 22
  • 26
19
votes
2 answers

How to install a leiningen plugin?

How do I install a leiningen plugin? For example, leiningen-run? I see this thing called "clojars.org", and how to "push" to it, but I don't see anything about "pulling" from it.
kes
  • 5,983
  • 8
  • 41
  • 69
18
votes
4 answers

Standalone clojure app

I'm a beginner with clojure, only starting it yesterday. I have gathered that a simple way to create a standalone app is with leiningen lein new foo. I tried to create a hello world test project with leiningen. I added :main and :aot directives to…
Masse
  • 4,334
  • 3
  • 30
  • 41
18
votes
2 answers

What does :scope "provided" mean?

I've seen a lot of places where some dependencies in Clojure project are marked with :scope "provided" (example). What does it mean?
OlegTheCat
  • 4,443
  • 16
  • 24
18
votes
1 answer

define project specific tasks in leiningen

Is there a way to define rake like tasks within a project for leiningen. I want to define a custom task in leiningen project.clj which will invoke a function in my project namespace
user1896766
  • 304
  • 2
  • 4
  • 10
18
votes
4 answers

Installing leiningen 2 on Ubuntu

I have followed the instructions here: leiningen.org To install from the lein script. I now have: ~/.lein/self-installs/leiningen-2.4.3-standalone.jar How do I now run leiningen? The instructions are not clear.
Zuriar
  • 11,096
  • 20
  • 57
  • 92
18
votes
5 answers

Installing libraries with leiningen without creating project

I am learning Clojure and coming from a Ruby background. I am looking for something analogous to gem install . The various incantations of lein install do not seem to fit this bill. Is there a way to simply install a library locally so that…
mydoghasworms
  • 18,233
  • 11
  • 61
  • 95
18
votes
3 answers

leiningen with multiple main classes

I'd like to have two main classes (or more) with leiningen, and then be able to choose which one at the java command line. For example I have: (ns abc (:gen-class)) (defn -main [] (println "abc")) (ns def (:gen-class)) (defn -main [] (println…
Kevin
  • 24,871
  • 19
  • 102
  • 158
17
votes
4 answers

Improving startup time of Clojure REPL with Leiningen on the Raspberry Pi

I got a Rasperry Pi 512 MB version (late 2012) and installed the Developer Preview of Java SE 8 for ARM on it. When I create a new Clojure project with Leiningen and launch the nREPL by doing lein repl it takes a bit more than two minutes (roughly…
raju-bitter
  • 8,906
  • 4
  • 42
  • 53
17
votes
2 answers

Can't launch `lein` REPL in Emacs

In Emacs, when using clojure-mode, I ought to be able to launch a REPL with C-c C-z. Whenever I try, though, I get the error: Searching for program: no such file or directory: lein I have lein installed in /usr/local/bin (via brew) and…
jemmons
  • 18,605
  • 8
  • 55
  • 84
17
votes
3 answers

How to force lein deps to re-fetch local jars/libs

using the following instructions: http://www.pgrs.net/2011/10/30/using-local-jars-with-leiningen/ I installed some local jars into local repository. When I want to update the jar in my project, I re-install the jar into the repository and then run…
hiroprotagonist
  • 902
  • 1
  • 11
  • 24
16
votes
1 answer

Deploying Clojure apps with Leiningen

This is my project.clj file so far: (defproject raj "0.0.1-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.3.0"]] :keep-non-project-classes true :main raj.core) And my core.clj file: (ns raj.core …
wrongusername
  • 18,564
  • 40
  • 130
  • 214
1 2
3
85 86