leiningen Questions
3
I'm learning Clojure, but I'm not really building whole projects for each little code snippet, I just drop them into a REPL. Occasionally code snippets I'm exploring require a dependency (usually s...
1
Solved
TLDR;
lein repl starts in the namespace defined by :main in project.clj, instead of user, as desired.
Details
I have a Leiningen project which is deployed as a command-line application in an ube...
1
Solved
ProblemI'm unable to load and call methods in a compiled c class into a leiningen project. My basic approach is to load a Java class, JavaWrapper.java, that uses JNI to call some native methods in ...
2
We are hosting a corporate repository which acts as a proxy to the well-known repositories (e.g. Maven Central and Clojars). I want Leiningen to hit the corporate repository in the first place. Onl...
1
Solved
This question is a follow up to How does one pre-load a clojure file in the leiningen repl?.
My ~/.lein/profiles.clj looks as follows:
{
:user {:source-paths ["C:/Users/username/.lein/src"] }
}...
1
Solved
When I start clojure repl for specific project, for leiningen is enough to specify correct clojure version in the concrete project.clj file as described here. But when I start repl outside the proj...
1
Solved
I'm working with leiningen and Clojure to create an uberjar so I have a single file for deployment. I'm also embedding some static files using the default resource paths for leiningen, the names an...
3
I am following along with this example on creating a simple web service in Clojure using ring and jetty.
I have this in my project.clj:
(defproject ws-example "0.0.1"
:description "REST datasto...
1
Solved
I am getting
Warning: specified :main without including it in :aot.
If you only need AOT for your uberjar, consider adding :aot :all into your
:uberjar profile instead.
Here is my project.clj
(...
2
Solved
I'm trying out clojure on my second day and I don't understand almost anything yet. I am working with the Programming Clojure 2nd ed. and I am stuck with libraries.
I have Leiningen and have the R...
1
Solved
I am trying to use environ to access environment variables specified in my project.clj :dev profile. This looks like a nice way to set up different configuration options, but I can't seem to get it...
Micropaleontology asked 2/2, 2014 at 23:17
2
Solved
I want to use the leiningen checkouts/ directory feature, but this feature requires that the project under checkouts/ checked out directory contains a project.clj. I have a project (pallet) that ha...
Carmancarmarthen asked 17/11, 2011 at 21:38
3
Solved
I'm starting my new learning phase of Clojure. I want to build a web application, but I don't know which one to use. I've searched for several hours online, and all the things I found kind of overl...
3
Solved
Is it possible to easily manage and compile native Java classes alongside Clojure in a project using leiningen?
I am working at a pretty low level (with netty nio) and thinking that some of the pl...
Polo asked 25/3, 2011 at 12:3
3
Solved
I'm working on a clojure web application, using leiningen 2 for build and deployment. It's a very vanilla webapp, and I'm using compojure, ring, and lein-beanstalk. My app needs to use both databas...
Centavo asked 31/12, 2012 at 21:19
1
Solved
I am new to clojure, when I use
lein new app
I saw this line
:main ^:skip-aot my-stuff.core
What does ^:skip-aot mean?
In which section of clojure document could I find the description?
2
Solved
I've got a two profiles defined in project.clj, one locally, one for testing on travis:
:profiles {:dev {:dependencies [[midje "1.6.0"]
[mysql/mysql-connector-java "5.1.25"]]
:plugins [[lein-mid...
1
Solved
Does anyone know why I'm getting the below error? I read through answers of similar questions, which recommended using Leiningen, which I've done below and still get the error.
MacBook-Pro:~ xxx$ l...
1
Solved
I would like to write a shell script to start a lein repl and then provide some commands while still keeping the repl running.
For example I might want to do the equivalent of:
lein repl
(dev)
(s...
3
Solved
In Leiningen, is there something like Mavens "mvn help:effective-pom"?
I want to know which dependencies are imported as transitive deps of my deps.
1
Solved
I just started Web Development with Clojure but I am stuck with a real simple problem. I have :main myapp.core/foo in the project.clj
(defproject myapp "0.1.0-SNAPSHOT"
:description "FIXME: write...
2
Solved
I know it is possible to use CounterClockwise inside Eclipse, but I have been trying to get Leiningen to work so that I could use ClojureScript.
I downloaded leiningen using git clone. It then sa...
Curren asked 12/4, 2013 at 1:45
0
Consider the following (minimal) leiningen project
./project.clj:
(defproject repro "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]
[midje "1.5.1"]])
./repro/src/repro/core.clj:...
Horologist asked 6/10, 2013 at 17:2
1
Solved
I'm just learning how to lein, and I'd like to use from a Java source
a class created by deftype in a Clojure source. This wasn't covered in the basic
tutorial and I can't get it to work properly.
...
1
Solved
Getting a java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector
when i run lein test or l...
© 2022 - 2024 — McMap. All rights reserved.