clojure - cannot lein ring uberwar with resource file: duplicate entry -
i have clojure web server project use uberwar
task deployment.
it has worked well, until when try adding template xml files in resources directory.
whenever run lein ring uberwar
, following output:
compiling 28 source files /users/val/bandsquare/dev/digitick-booking-worker/target/classes note: input files use unchecked or unsafe operations. note: recompile -xlint:unchecked details. java.util.zip.zipexception: duplicate entry: web- inf/classes/savecart2_addedsomesuffixthatcannotbeanywhereelse.xml @ java.util.zip.zipoutputstream.putnextentry (zipoutputstream.java:233) java.util.jar.jaroutputstream.putnextentry (jaroutputstream.java:109) sun.reflect.generatedmethodaccessor70.invoke (:-1) sun.reflect.delegatingmethodaccessorimpl.invoke (delegatingmethodaccessorimpl.java:43) java.lang.reflect.method.invoke (method.java:483) clojure.lang.reflector.invokematchingmethod (reflector.java:93) clojure.lang.reflector.invokeinstancemethod (reflector.java:28) leiningen.ring.war$write_entry.invoke (war.clj:185) leiningen.ring.war$file_entry.invoke (war.clj:201) leiningen.ring.war$dir_entry.invoke (war.clj:206) leiningen.ring.uberwar$write_uberwar.invoke (uberwar.clj:48) leiningen.ring.uberwar$uberwar.invoke (uberwar.clj:74) leiningen.ring.uberwar$uberwar.invoke (uberwar.clj:62) ...
i have tried cleaning project in every way imagine suggested in this thread.
i sure not have duplicate source files, since not matter name file under resources
directory, nor place it.
below project layout:
and here project.clj
:
(defproject digitick-booking-worker "1.7.1" :description "an rpc server act adapter interface digitickbooking web service." :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.6.0"] [compojure "1.3.1"] [ring/ring-defaults "0.1.2"] [http-kit "2.1.18"] [org.jsoup/jsoup "1.8.2"] ; html dom manipulation [selmer "0.8.2"] [org.clojure/data.zip "0.1.1"] [log4j "1.2.17" :exclusions [javax.mail/mail javax.jms/jms com.sun.jdmk/jmxtools com.sun.jmx/jmxri]] [com.taoensso/timbre "3.1.6"] [com.novemberain/langohr "3.0.1"] [org.clojure/core.async "0.1.346.0-17112a-alpha"] ; asynchrony [cheshire "5.3.1"] ;; json encoding library clojure. [bs/axis-ant "1.0"] [bs/axis "1.0"] [bs/commons-discovery "1.0"] [bs/commons-logging "1.0"] [bs/jaxrpc "1.0"] [bs/log4j "1.0"] [bs/saaj "1.0"] [bs/wsdl4j "1.0"] ] :plugins [[lein-ring "0.8.13"]] :ring {:handler digitick-booking-worker.handler/app :init digitick-booking-worker.handler/init} :profiles {:dev {:dependencies [[javax.servlet/servlet-api "2.5"] [ring-mock "0.1.5"]]}} :repositories [["localrepo" "file:axisrepo"]] :java-source-paths ["digitick"] )
any appreciated!
update
the problem disappears when remove pom.xml
(which generated using lein pom
).
my guess lein ring uberwar
task somehow assigns duplicate jobs taking both project.clj
, pom.xml
account. (should reported bug?)
not marking question solved yet because not have definite explanation.
Comments
Post a Comment