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
0
votes
3 answers

How to push a lein localrepo of dependencies to clojars (processing.org jars)

Processing's (processing.org) basic library jars are not on clojars or maven. I have a project going with clojure and would like to upload the jars to clojars under my username. It was kind of tedious to get them into my .m2 folder one a time. I…
user1026169
  • 5,345
  • 5
  • 21
  • 35
0
votes
3 answers

Leiningen fails to start a REPL on WinXP machine

I'm using a WinXP (sp3) machine with clojure-1.5.1, leiningen-2.3.4, and the Java 1.7.0_45 jdk. I have no trouble creating a new project with leiningen, starting a clojure shell, or creating and running java programs. However, the following command…
CaitlinG
  • 1,955
  • 3
  • 25
  • 35
0
votes
2 answers

How do I use the Clojure `use` function in leiningen?

I am very new to both Clojure and Leiningen. I have installed Clojure on Windows at C:\clojure-1.5.1 and leiningen-win-installer beta1 at C:\.lein\bin. Now I am trying the example from Eric Rochester's book. I have included dependent libraries for…
Gopinathan K M
  • 335
  • 2
  • 6
  • 15
0
votes
1 answer

Clojure to JavaScript Converter (Leiningen)

I have Leiningen installed and the project all set up. Someone told me to use the "lein cljsbuild once" command to convert Clojure to JavaScript. This did not fully answer my question because I'm having trouble understanding the folder structure of…
0
votes
1 answer

ClosureScript repl under lein fails on Ubuntu 12.04 LTS with FileNotFoundException

Trying to get the closurescript repl up with lein under a lein project directory, on Ubuntu 12.04 LTS all-up-to-date. I have a basic hello-world project that I created with lein new hello-world, and a custom project.clj (listed below). The same…
christopherbalz
  • 722
  • 1
  • 8
  • 22
0
votes
1 answer

How to unpack a .jar file after creating one in Lieiningen?

I run lein uberjar and I can deploy the project. The problem is that I don't know how to "undo" the .jar file and revert it back to Clojure. I looked around but I haven't been able to find any solution. The reason I'd like to do this is because I…
dizzystar
  • 1,055
  • 12
  • 22
0
votes
3 answers

Newbie: "for" loops in functions behave in unexpected ways

I've been developing in Java and Perl for a long time but wanted to learn something new so I've begun looking into clojure. One of the first things I've tried was a solution for the Towers of Hanoi puzzle but I've been getting strange behavior on…
peterc
  • 97
  • 8
0
votes
2 answers

Cryptic Clojure error: java.lang.UnsupportedOperationException: nth not supported on this type: Symbol

I am trying to make leiningen work. I am using Windows 7. When I run in the command window C:\lein new app my-app I get the following error. Does anyone know what this means and where the error is occuring? There is an explanation of the error…
Zeynel
  • 13,145
  • 31
  • 100
  • 145
0
votes
1 answer

Leiningen error creating new app on mac osx

I'm trying to use leiningen 2.3.2. When I run: lein new app my-stuff the following error occours: java.lang.Exception: project.clj must define project map at leiningen.core.project$read.invoke(project.clj:681) at…
Luiz Costa
  • 1,515
  • 2
  • 12
  • 12
0
votes
1 answer

Leiningen and local repo dependencies issue

I'm using Leiningen and local repo, and here's my project.clj. Camelclojure is local jar. (defproject mashup-dsl "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" …
Vesna
  • 345
  • 2
  • 11
0
votes
1 answer

`lein deploy clojars` gives Connection reset by peer: socket write error

I get the error I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error when I try to deploy a lib to clojars. I tried it several times, in a span of 20…
oskarkv
  • 2,329
  • 2
  • 21
  • 29
0
votes
0 answers

How can I use Leiningen to build a non clojure/Java system?

I am using maven and ant to build some mixed Java/non Java environments. How can I use Leiningen to the same? Update leiningen supports Java and javac. For other systems you can write a plugin
yazz.com
  • 57,320
  • 66
  • 234
  • 385
0
votes
1 answer

Can't seem to import namespaces of test.generative

So, I was having trouble requiring some namespaces in test.generative . I have the following project.clj: (defproject gen "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public…
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
0
votes
2 answers

Using a parent directory as a Leiningen dependency?

I am working on a Clojure library. Inside the library is an example app that shows how to use the library. In the example app, which is in a subdirectory, what is the cleanest way to depend on the parent library? I want this to be fast; I want the…
David J.
  • 31,569
  • 22
  • 122
  • 174
0
votes
1 answer

Compojure Ring Server Generated By 'lein ring server' Acting Oddly

So I was coding and I got an exception. I fixed the exception and then went back to check that things were working. Instead of seeing my fixes I instead saw the website that was generated prior to the exception having been thrown. Like my previous…
Joshua
  • 547
  • 1
  • 5
  • 13