Jar produced with lein uberjar fails on NoClassDefFoundError

后端 未结 1 381
南旧
南旧 2021-01-18 09:50

I have a simple web app with this project.clj:

(defproject squirrel-money \"1.0.0-SNAPSHOT\"
  :description \"Squirrel Money\"
  :dependencies [[org.clojure/         


        
1条回答
  •  北海茫月
    2021-01-18 10:24

    This seems to be a leinigen 1.4.0 bug. You might want to try creating an uberjar with leiningen 1.3.1.

    Edit:

    Leiningen 1.4.0 deletes non-project .class files to work around a Clojure bug (see CLJ-322). Apparently this behavior can sometimes cause problems.

    You can keep leiningen 1.4.0 from deleting non-project .class files by setting :keep-non-project-classes to true in your project.clj.

    See the related leinigen issue for more info.

    0 讨论(0)
提交回复
热议问题