I am attempting to distribute a small web application build with the clojure web framework noir. It works as expected when run with lein run
. When I run lein uberjar
and then java -jar project-1.0.0-standalone.jar
it works as expected. However, if I move the jar file (project-1.0.0-standalone.jar) it runs, but every page results in a 404. My project.clj
is the default one generated by lein noir new
except I added :omit-source true
and :aot :all
.
I'm using:
leiningen 1.7.1
clojure 1.2.1
noir 1.2.1
How can I make a jar that can be distributed to others without source?