leiningen with multiple main classes
问题 I'd like to have two main classes (or more) with leiningen, and then be able to choose which one at the java command line. For example I have: (ns abc (:gen-class)) (defn -main [] (println "abc")) (ns def (:gen-class)) (defn -main [] (println "def")) With a project.clj having: (defproject my-jar "0.0.1" :description "test" :dependencies [ ] :main abc) Then I build with lein uberjar , and run: java -cp my-jar-0.0.1-standalone.jar abc java -cp my-jar-0.0.1-standalone.jar def I get it that when