When I create a uberjar with aot compilation I am surprised to see ".clj" files in there. Then when I run the jar with the "java -jar myuberjar" command I get a ClassNotFoundException.
For example, I am have the following dependency in my project.clj file:
[org.clojure/java.jdbc "0.3.6"]
However, when running the uberjar I see the following exception
java.lang.ClassNotFoundException: clojure.java.jdbc.Connectable
Inside the uberjar when I traverse to the location \clojure\java\jdbc I see only one file "jdbc.clj" and no ".class" files? I don't see the Connectable.class file there. I am expecting to see the .class files here as I am specifying :aot :all in my project.clj file:
:profiles
{:dev {:resource-paths ["config_dev"]}
:stage {:resource-paths ["config_stage"]}
:prod {:resource-paths ["config_prod"]}
:uberjar {:aot :all}})
Have spent many hours hair pulling but not able to figure out how to solve this problem.
Many thanks for your help.
Regards,
Shoeb
Leiningen version 2.5.0
Issue is on both Windows 7 and Linux.