This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-06
Channels
- # announcements (14)
- # babashka (14)
- # beginners (22)
- # calva (56)
- # cider (20)
- # clerk (8)
- # clj-commons (10)
- # clj-kondo (18)
- # cljs-dev (11)
- # clojure (87)
- # clojure-conj (3)
- # clojure-europe (29)
- # clojure-nl (1)
- # clojure-poland (5)
- # clojure-portugal (1)
- # clojurescript (100)
- # data-science (3)
- # datahike (1)
- # datomic (13)
- # events (2)
- # fulcro (10)
- # funcool (2)
- # helix (19)
- # hoplon (6)
- # humbleui (2)
- # hyperfiddle (40)
- # leiningen (5)
- # lsp (22)
- # malli (26)
- # nrepl (2)
- # off-topic (19)
- # reagent (32)
- # releases (1)
- # shadow-cljs (266)
- # spacemacs (6)
- # tools-build (9)
- # vim (1)
Hi! I'm getting an exception when building an uber jar in windows using the default conflict handler (:append-dedupe) for LICENSE files, also with :append. It works well :warn. Here is the error message: Execution error (FileNotFoundException) at http://java.io.FileOutputStream/open0 (FileOutputStream.java:-2). C:\Users\B\AppData\Local\Temp\uber11859840574852522667\LICENSE (Zugriff verweigert) Zugriff verweigert = Access Denied (I also tried it with adminstrator privileges, so this does not seem the problem) I am using io.github.clojure/tools.build {:git/tag "v0.9.4" :git/sha "76b78fe"} Thanks for any ideas.
@U04TQR7C24D After this failure, does C:\Users\B\AppData\Local\Temp\uber11859840574852522667\LICENSE
exist on disk?
It's most likely due to one dependency jar having a file called license and one having a directory called license. The solution is to add an exclusion on license.
This comes up fairly often here so you should be able to search this channel for license
to find details (I'm in my phone right now).
thanks for your fast answers! I'll look through the channel. I am fairly new to clojure and it cost me some time to even figure out the conflict handler as a culprit, would be nice to have a more verbose error message 🙂 (the file does not exist after building)
This conflict happens less on Linux because the directory tends to be license
and the file tends to be LICENSE
, but it can happen easily on macOS/Windows where the filesystem is not case-sensitive. I'm at my desk now so if you're still looking for the exact config needed, I can probably find it pretty quickly now... 🙂
Uberjar building OK now?