walmartlabs / vizdeps

Visualize Leiningen dependencies using Graphviz
Apache License 2.0
131 stars 13 forks source link

Resolve custom repositories #4

Open julienfantin opened 7 years ago

julienfantin commented 7 years ago

One of our transitive dependencies pulls from a custom repository [1] which seems to confuse vizdeps, erroring with:

clojure.lang.ExceptionInfo: Exception processing dependencies of [cc.qbits/alia-all "3.3.0" :exclusions [[org.clojure/tools.reader]]]: Exception processing dependencies of [cc.qbits/alia-eaio-uuid "3.1.3"]: Exception processing dependencies of [cc.qbits/tardis "1.0.0"]: Exception processing dependenci
es of [com.eaio.uuid/uuid "3.3"]: Exception resolving dependencies of [com.eaio.uuid/uuid "3.3"]: Could not resolve dependencies
...
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.eaio.uuid:uuid:jar:3.3 in central (https://repo1.maven.org/maven2/)

The command runs once we had the repository to our own project however.

[1] https://github.com/mpenet/tardis/blob/master/project.clj

hlship commented 7 years ago

There's a hack in there to resolve artifacts that may have an issue. I think I've seen this in some of our internal code, we're generally good about identifying external repos in each project.clj, but something dragged in some JBoss stuff only visible to in the JBoss repos and I had to explicit add that to :repositories in some roll-up projects.