Fork me on GitHub
#polylith
<
2021-08-15
>
alpox12:08:42

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?

Karol Wójcik12:08:28

Yeah. Or add the empty paths []

alpox12:08:27

Ah! That made it go away 🙂 thanks!

tengstrand14:08:40

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!

seancorfield18:08:10

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.

seancorfield18:08:43

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.

tengstrand19:08:07

Thanks for sorting out this.

alpox22:08:06

Thanks too for the elaborate answers. Very insightful! The warning was a bit too vague for me to understand, sadly