This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-29
Channels
- # admin-announcements (6)
- # announcements (1)
- # beginners (1)
- # boot (104)
- # braid-chat (5)
- # cbus (1)
- # cider (2)
- # clojure (147)
- # clojure-japan (1)
- # clojure-poland (1)
- # clojure-russia (31)
- # clojurescript (16)
- # core-async (4)
- # css (2)
- # cursive (14)
- # datomic (40)
- # devcards (5)
- # dirac (100)
- # emacs (5)
- # funcool (1)
- # immutant (52)
- # juxt (4)
- # ldnclj (128)
- # lein-figwheel (12)
- # leiningen (26)
- # luminus (3)
- # mount (22)
- # off-topic (11)
- # om (144)
- # onyx (2)
- # parinfer (1)
- # proton (7)
- # re-frame (55)
- # reagent (16)
- # slack-help (5)
- # yada (1)
nyone know how to get lein install (with :aot :all) to not include *.clj source files in the artifact?
found it - :omit-source true
… except it didn’t work 😉
nevermind, my profile wasn’t active
I was looking at the first lein uberjar
example in Clojure for the Brave and True (http://www.braveclojure.com/getting-started/), but when I try run the jar
file using java -jar target/uberjar/clojure-noob-0.1.0-SNAPSHOT-standalone.jar
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/Var
at clojure_noob.core.<clinit>(Unknown Source)
Caused by: java.lang.ClassNotFoundException: clojure.lang.Var
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
Any ideas / suggestions?That's there
Do I need to do anything specific to pull it down from the web?
I've literally run lein new app clojure-noob
followed by lein uberjar
If I do lein run
it works
but the jar doesn't
(defproject clojure-noob "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url ""}
:dependencies [[org.clojure/clojure "1.8.0"]]
:main ^:skip-aot clojure-noob.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})
$ lein new app clojure-noob
Generating a project called clojure-noob based on the 'app' template.
$ cd clojure-noob
$ lein run
Hello, World!
$ lein uberjar
Compiling clojure-noob.core
Created .../clojure-noob/target/uberjar+uberjar/clojure-noob-0.1.0-SNAPSHOT.jar
Created .../clojure-noob/target/uberjar/clojure-noob-0.1.0-SNAPSHOT-standalone.jar
$ java -jar target/uberjar/clojure-noob-0.1.0-SNAPSHOT-standalone.jar
Hello, World!
Thanks @tolitius. Closing the shell and reopening it and running all the code again seemed to resolve the issue.
is there a way to dump what lein is doing in a more verbose way...like what are the accumulated settings its created for the various project.clj/profiles.clj etc...
got it: https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#debugging