Fork me on GitHub
#tools-deps
<
2023-04-04
>
pithyless09:04:18

What happens if a maven dependency adds <type>pom</type> ?

❯ clj -Srepro -Sdeps '{:deps {com.kohlschutter.junixsocket/junixsocket-core {:mvn/version "2.6.2"}}}'

Error building classpath. Could not find artifact com.kohlschutter.junixsocket:junixsocket-core:jar:2.6.2 in central ()

pithyless09:04:43

Previous version that still works:

❯ clj -Srepro -Sdeps '{:deps {com.kohlschutter.junixsocket/junixsocket-core {:mvn/version "2.3.2"}}}'
Clojure 1.11.1
user=>

delaguardo10:04:54

I believe this is a known issue - https://clojure.atlassian.net/browse/TDEPS-202 for now the workaround is to look at pom.xml for junixsocket-core lib and get the same dependencies as inside of pom.xml into your deps.edn

pithyless10:04:11

ah ok, I see. Thanks for the clarification!

delaguardo10:04:36

UPD: Please don't use this workaround, this is not supported btw I just tried this `clj -Srepro -Sdeps '{:deps {com.kohlschutter.junixsocket/junixsocket-core {:mvn/version "2.6.2" :extension "pom"}}}'` and it works.

🙏 2
gratitude 2
Alex Miller (Clojure team)12:04:35

I would not rely on that continuing to work reliably if it happens to now, this is currently not supported

pithyless12:04:11

OK, thanks for the heads up!