-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uberjar aborting because jar failed: duplicate entry: web/utils.cljs #366
Comments
Could you paste the entire project.clj? |
Here: (defproject my-project "0.2.0-SNAPSHOT" ;:repositories {"local" ~(str (.toURI (java.io.File. (str (System/getenv On Thu, Feb 19, 2015 at 10:38 PM, Chas Emerick notifications@github.com
|
Hi, Having the same issue with .cljc files. The standard jar task runs, adding source files (.clj/.cljc) and when the cljsbuild hook is called, it tries again to add the same cljc files and this makes the jar task failed. I had to globally disable the hook and create a specific jar profile to work around this to get the js targets in the jar. Cljsbuild does not check that the file has not been already added ? Can it verify ? Thank you |
+1 |
cljsbuild's hooks need to be eliminated entirely. They are semi-deprecated in Leiningen, in preference of :prep-tasks ["compile" ["cljsbuild" "once"]] |
Track #405 for the hook elimination. |
Would it be possible for this recommendation to either remain as an open issue until fully resolved, or for the README / Wiki to be updated to point people in this direction? I also problems with this and only just stumbled upon this thread. |
Thank you for the suggestion. I've added a note about this to the README (04c06f6) |
Hi all,
I can compile my ClojureScripts with the following uberjar profile, i.e., "lein with-profile uberjar cljsbuild once" works fine. However whenever I try to create an uberjar, I receieve the following error and uberjar creattion fails. Do you have any idea what might be the problem?
Error:
Compiling ClojureScript.
Uberjar aborting because jar failed: duplicate entry: web/utils.cljs
Uberjar profile:
The text was updated successfully, but these errors were encountered: