and a completely fresh maven dir rm -rf ~/.m2, I run clj -Stree and get:
Downloading: org/clojure/clojure/1.12.3/clojure-1.12.3.pom from central
Downloading: org/clojure/spec.alpha/0.5.238/spec.alpha-0.5.238.pom from central
Downloading: org/clojure/core.specs.alpha/0.4.74/core.specs.alpha-0.4.74.pom from central
Downloading: org/clojure/pom.contrib/1.2.0/pom.contrib-1.2.0.pom from central
Downloading: org/dcm4che/dcm4che-parent/5.34.1/dcm4che-parent-5.34.1.pom from dcm4che
Downloading: org/weasis/core/weasis-core-img-bom/4.11.0/weasis-core-img-bom-4.11.0.pom from nroduit-mvn-repo-master
Downloading: org/clojure/clojure/1.12.3/clojure-1.12.3.jar from central
Downloading: org/clojure/core.specs.alpha/0.4.74/core.specs.alpha-0.4.74.jar from central
Downloading: org/clojure/spec.alpha/0.5.238/spec.alpha-0.5.238.jar from central
Error building classpath. Could not find artifact org.dcm4che:dcm4che-parent:jar:5.34.1 in central (https://repo1.maven.org/maven2/)
Why is it looking for the dcm4che-parent jar in central rather than the specificed maven repo? I had a look at the pom file in the correct repo; it seemed plausible to my non-maven-expert eyes.
The JAR was not found in the dcm4che repo - there are only POM files there. So tools.deps continued the search in the default repos, and couldn’t find the JAR there either.
The reason for there being nor JAR is that that POM has <packaging>pom</packaging>. And that type of packaging is not currently supported by tools.deps.
In order to use the relevant library from Clojure, I’d just specify dependencies on the exact libraries that you need. Those can be found under <modules> in that POM. You might need all of them, or you might need just a few.
Downloading: org/dcm4che/dcm4che-core/5.34.2/dcm4che-core-5.34.2.pom from dcm4che
Error building classpath. Failed to read artifact descriptor for org.dcm4che:dcm4che-core:jar:5.34.2
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.dcm4che:dcm4che-core:jar:5.34.2
The error that you quote is a symptom. The actual error is mentioned in its cause:
Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact org.dcm4che:dcm4che-parent:pom:5.34.2 in central (https://repo1.maven.org/maven2/)
Huh! So there’s a 5.34.2 version published, but the dcm4che-parent isn’t a part of that release for some reason. At least, it’s missing from the Maven repo. So I’d say that version is currently broken.
Let’s try with the previous version:
clj -Sdeps '{:mvn/repos {"dcm4che" {:url "https://maven.dcm4che.org/"}} :deps {org.dcm4che/dcm4che-core {:mvn/version "5.34.1"}}}'
Downloading: org/dcm4che/dcm4che-core/5.34.1/dcm4che-core-5.34.1.pom from dcm4che
Downloading: org/dcm4che/dcm4che-parent/5.34.1/dcm4che-parent-5.34.1.pom from dcm4che
Downloading: org/weasis/core/weasis-core-img-bom/4.11.0/weasis-core-img-bom-4.11.0.pom from nroduit-mvn-repo-master
Downloading: org/dcm4che/dcm4che-dict/5.34.1/dcm4che-dict-5.34.1.pom from dcm4che
Downloading: org/dcm4che/dcm4che-dict/5.34.1/dcm4che-dict-5.34.1.jar from dcm4che
Downloading: org/dcm4che/dcm4che-core/5.34.1/dcm4che-core-5.34.1.jar from dcm4che
Clojure 1.12.0
user=>