Fork me on GitHub

Hi, all — I’m trying to get an uberjar created of a Fulcro RAD server application, with AOT to speed up startup time. I can start the server from clj with the given set of aliases no problem.

clj -A:dev:datomic
Clojure 1.10.3
But when I attempt to make an uberjar with those same aliases, I get a “file not found” error, even though it should be on the classpath (from the “datomic” alias). Does anyone have any ideas on what I might be doing wrong? Thank you!
clj -X:datomic:dev:uberjar :aot true :jar ./target/feedly-reader-standalone.jar \
		:main-class com.example.components.server
[main] INFO hf.depstar.aot - Compiling com.example.components.server ...
Execution error (FileNotFoundException) at com.example.components.ring-middleware/loading (ring_middleware.clj:1).
Could not locate com/example/components/parser__init.class, com/example/components/parser.clj or com/example/components/parser.cljc on classpath.

Full report at:

[main] ERROR hf.depstar.aot - Compilation failed!
Execution error (ExceptionInfo) at hf.depstar.uberjar/build-jar-as-exec (uberjar.clj:553).
AOT compilation failed


(I know I shouldn’t have “dev” alias in uberjar… I included it just to see if it would resolve the problem.)


(I also posted this in #depstar channel, but thought I’d cross-post here, in case any of you have had this problem. I’ll cross-post any answer, too. Thx!)


Thanks to Sean Corfield, I have the answer: I was using depstar wrong: command line is: clj -X:uberjar :aliases ‘[:datomic]’ :aot true :jar ./target/feedly-reader-standalone.jar :main-class com.example.components.server. 🎉


That guy is so freaking helpful and responsive

💯 17