This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-15
Channels
- # announcements (9)
- # babashka (1)
- # beginners (1)
- # calva (7)
- # cider (13)
- # clj-kondo (2)
- # cljsrn (1)
- # clojure (40)
- # clojure-europe (2)
- # clojure-spec (9)
- # clojure-uk (1)
- # cursive (4)
- # datomic (2)
- # etaoin (1)
- # fulcro (4)
- # honeysql (3)
- # lsp (43)
- # malli (7)
- # music (1)
- # nbb (6)
- # off-topic (5)
- # polylith (8)
- # protojure (1)
- # re-frame (6)
- # react (17)
- # reagent (63)
- # releases (1)
- # shadow-cljs (8)
- # testing (8)
- # tools-deps (1)
- # vim (8)
I was following alongside the Readme.md
to setup a polylith app. I got until the section for creating an uberjar - but get the warning:
{:warning "could not find classpath entry", :path "src"}
when running the build script.
Do I have to be concerned about that or should I ignore it?
Yeah. Or add the empty paths []
Exactly, you can just ignore that message. If I remember right, it’s depstar that complains. I guess it’s a valid warning, because almost all projects except Polylith projects have a :path
at the root!
The warning is from tools.deps.alpha
and it has a default :paths
of ["src"]
and will complain if that path does not exist. Having :paths []
is the correct way to suppress that message if you have no src
folder -- but in this case it is safe to ignore the warning if you want.
There's a similar warning you can get from tools.deps.alpha
which can be important: when writing the pom.xml
file (using tools.deps.alpha
), only the first entry in :paths
is considered for the sources entry in the pom.xml
file. If you have :paths ["src" "resources"]
it will warn you that it ignores "resources"
. That's OK. But if you have :paths ["resources" "src"]
it will warn you that it ignores "src"
and you'll end up with your pom.xml
file declaring that your resources
folder is where the sources are, so you should pay attention to that warning and fix the order.
Thanks for sorting out this.