Fork me on GitHub
#tools-deps
<
2020-11-17
>
imre14:11:35

Hey folks. I just ran into a problem at deps resolution: Error building classpath. Could not find artifact gcardone:junidecode:jar:0.2 in central () My project is not directly referencing this lib and I don't know where in the dep tree it is referenced from. Is there any way to trace this with the clojure command line?

borkdude14:11:16

clojure -Stree

imre14:11:53

Unfortunately that fails with the same error without printing anything useful. So do -Spath and -Strace

borkdude14:11:25

oh right :)

borkdude14:11:32

then bisect?

borkdude14:11:04

maybe also try -Sforce which will force recreation of classpath

imre14:11:45

bisect it is then

imre14:11:57

force does not help

dominicm14:11:36

I'm surprised trace doesn't output anything. That would be pretty useful for this case.

dominicm14:11:55

Is the secret verbose flag still a thing the?

Alex Miller (Clojure team)15:11:34

there isn't a good answer for this right now other than tracing down the deps tree semi-manually

Alex Miller (Clojure team)15:11:50

I've been looking at some new tools for questions like this

Alex Miller (Clojure team)15:11:17

or you could -Spom and mvn dependency:tree

Alex Miller (Clojure team)15:11:25

might get more info that way

imre15:11:30

hmm could try that yeah

imre15:11:53

well, that also fails with the same I'm afraid

Alex Miller (Clojure team)15:11:52

maybe mvn -X dependency:tree ?

imre15:11:31

Sorry, I meant -Spom fails

imre15:11:52

found it in the end by reverting and updating deps one by one