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
1 answer

`lein deploy clojars` hangs

I've installed GPG4Win, generated keys and pasted my public key into clojars as per the leiningen gpg readme. However, when I lein deploy clojars, after asking me for my clojars username and password and printing that it has created the jar, it…
one-more-minute
  • 1,408
  • 10
  • 12
0
votes
1 answer

how to use leiningen to download dependenies for the openimaj library

I'm trying to use the repository specified in: http://sourceforge.net/p/openimaj/wiki/OpenIMAJ%20Library/ and the metadata is here: http://maven.ecs.soton.ac.uk/content/groups/maven.openimaj.org/org/openimaj/openimaj/maven-metadata.xml the project…
zcaudate
  • 13,998
  • 7
  • 64
  • 124
0
votes
1 answer

Attempting to use leiningen to deploy to Archiva... failing

I'm stuck trying to deploy a project from leiningen to a local archiva instance. I've got my project.clj setup correctly (I think) :repositories ^:replace [["snapshots" {:url "http://localhost:8080/archiva/repository/snapshots"}] …
jgerman
  • 2,161
  • 3
  • 13
  • 10
0
votes
1 answer

Clojure Java Interop - reference to field ... can't be resolved

I am working on a clojure project where I want to create a class in Java and then instantiate that class and call a method from within my clojure code. My Java code is located in resources/MyClass.java public class MyClass { public static long…
David Williams
  • 8,388
  • 23
  • 83
  • 171
0
votes
1 answer

Compojure Example from Clojure in Action Not Working

I am working on the Compojure example from Clojure in Action page 232 (ns compojure-test.core (:gen-class) (:use compojure)) (defroutes hello (GET "/" (html [:h1 "Hello world"])) (ANY "*" [404 "Page not found"])) (run-server {:port 8080}…
David Williams
  • 8,388
  • 23
  • 83
  • 171
0
votes
1 answer

Failed Retrieving Guava Libs from Maven

I am using leiningin to create and compile the first example from Mahout in Action on recommender systems. I am trying to build the dependencies, but Guava is failing. How can I fix this? $ lein deps Retrieving…
David Williams
  • 8,388
  • 23
  • 83
  • 171
0
votes
1 answer

Is there a way to regenerate the target directory in leiningen?

My target directory has been rmed in Linux - does Leiningen offer a way to regenerate it?
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
0
votes
2 answers

(Using Leiningen or Choosing a JVM) on OS X

I want to try out Clojure and I'm having some trouble with the first step from here. It suggests using Leiningen to set up the Clojure project. I download and run lein and I see this: Error: dl failure on line 732 Error: failed…
munk
  • 12,340
  • 8
  • 51
  • 71
0
votes
1 answer

can't connect my compojure app to postgres db (following heroku tutorial)

i'm following along the heroku compojure tutorial. When I get to the point in the tutorial where a table is created, I get the following error message: user=> (require '[clojure.java.jdbc :as sql]) nil user=> (sql/with-connection (System/getenv…
Ramy
  • 20,541
  • 41
  • 103
  • 153
0
votes
1 answer

lein-ring plugin throws exception

I am trying to use lein-ring plugin. After having installed the plugin any attempt to issue a a lein ring command yields a java.lang.ClassNotFoundException: javax.xml.stream.XMLInputFactory I am using leiningen 1.7.1 and java version 1.5.
kostas
  • 1,959
  • 1
  • 24
  • 43
0
votes
1 answer

localrepo throws "Could not locate ... " error when I try to use it

I'm using lein 1.7.1 on a ubuntu machine. I've added localrepo by including :dev-dependencies [[lein-localrepo "0.3"]] to my project.clj file. lein deps runs fine but using localrepo like in lein localrepo coords example.jar throws me a nasty…
Zchpyvr
  • 1,119
  • 3
  • 12
  • 26
0
votes
1 answer

Why are these two sequences not equal?

My question is why are my expected and generated sequences different? I cannot see why upon visual inspection. In lein test, I am comparing a sequence returned by my function gen-map-keys (defn gen-map-keys "Takes a sequence, and turns it into…
octopusgrabbus
  • 10,555
  • 15
  • 68
  • 131
0
votes
1 answer

Install REPL-y clojure - lein compile doesn't work

I'm trying to install REPL-y. The lein project is working correctly, but when I try to run lein compile this happens: Exception in thread "main" java.lang.NoSuchMethodError: clojure.lang.KeywordLookupSite.(ILclojure/lang/Keyword;)V Any…
Édipo Féderle
  • 4,169
  • 5
  • 31
  • 35
0
votes
1 answer

Problems with lein installation in a macbook

I'm trying to install lein in my new macbook (osx 10.8.2) following the tutorial on https://github.com/technomancy/leiningen When executing the lein script, I'm getting this error: /bin/lein: line 1: {rtf1ansiansicpg1252cocoartf1187cocoasubrtf340:…
user828390
  • 13
  • 1
0
votes
2 answers

Could not locate clojure/contrib/string__init.class or clojure/contrib/string.clj on classpath

I am using a method from the contrib.string libraries but lein is having trouble finding the library. In my project.clj I have :dependencies [[org.clojure/clojure "1.4.0"]] inside of defproject and then (use '[clojure.string :only (join)]) (use…
Chris
  • 11,819
  • 19
  • 91
  • 145
1 2 3
85
86