# Non-standard maven repo pain with deps (dcm4che)

**URL:** https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795
**Category:** Troubleshooting
**Tags:** deps-edn
**Created:** [December 9, 2025, 7:48pm UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795 "2025-12-09T19:48:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jdf](https://clojureverse.org/user_avatar/clojureverse.org/jdf/32/3060_2.png) [@jdf](https://clojureverse.org/u/jdf)
#### Post date: [December 9, 2025, 7:48pm UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795/1 "2025-12-09T19:48:48Z")

</div>

Hi everyone,

I’m trying to use the DICOM library [dcm4che](https://web.dcm4che.org/) from Clojure and am getting stuck at the first step!

With the following `deps.edn` (macOS 15.7.2 on intel, clojure 1.12.3.1577 via brew):

```auto
{:mvn/repos {"dcm4che" {:url "https://maven.dcm4che.org"}}
 :deps {org.dcm4che/dcm4che-parent {:mvn/version "5.34.1"}}

```

and a completely fresh maven dir `rm -rf ~/.m2`, I run `clj -Stree` and get:

```auto
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](https://maven.dcm4che.org/org/dcm4che/dcm4che-parent/5.34.1/); it seemed plausible to my non-maven-expert eyes.

(I found this [similar post](https://v2.clojureverse.org/t/difference-between-deps-edn-and-leiningen-wrt-repositories/8677), but couldn’t adapt it to this problem. This [maven-oriented post](https://stackoverflow.com/questions/78754993/adding-dcm4che-5-library-to-java-project-using-intellij-and-maven) didn’t help either.)

---

<div class="post-metadata">

### Author: ![p-himik](https://clojureverse.org/user_avatar/clojureverse.org/p-himik/32/4137_2.png) [@p-himik](https://clojureverse.org/u/p-himik)
#### Post date: [December 9, 2025, 8:19pm UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795/2 "2025-12-09T20:19:29Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![seancorfield](https://clojureverse.org/user_avatar/clojureverse.org/seancorfield/32/195_2.png) [@seancorfield](https://clojureverse.org/u/seancorfield)
#### Post date: [December 9, 2025, 9:50pm UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795/3 "2025-12-09T21:50:42Z")

</div>

You can vote for [Add support for BOM (Bill Of Materials) dependencies - Clojure Q&A](https://ask.clojure.org/index.php/10892/add-support-for-bom-bill-of-materials-dependencies) to help prioritize the underlying Jira issue TDEPS-202.

---

<div class="post-metadata">

### Author: ![jdf](https://clojureverse.org/user_avatar/clojureverse.org/jdf/32/3060_2.png) [@jdf](https://clojureverse.org/u/jdf)
#### Post date: [December 10, 2025, 11:57pm UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795/4 "2025-12-10T23:57:27Z")

</div>

Thank you!

I get

```auto
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

```

with

```clojure
 {:mvn/repos {"dcm4che" {:url "https://maven.dcm4che.org/"}}
  :deps {org.dcm4che/dcm4che-core {:mvn/version "5.34.2"}}}

```

which presumably uses [this directory](https://maven.dcm4che.org/org/dcm4che/dcm4che-core/5.34.2/). Will keep chipping away at it.

---

<div class="post-metadata">

### Author: ![p-himik](https://clojureverse.org/user_avatar/clojureverse.org/p-himik/32/4137_2.png) [@p-himik](https://clojureverse.org/u/p-himik)
#### Post date: [December 11, 2025, 7:53am UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795/5 "2025-12-11T07:53:56Z")

</div>

The error that you quote is a symptom. The actual error is mentioned in its cause:

```auto
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/)

```

To double-check:

```bash
$ cat ~/.m2/repository/org/dcm4che/dcm4che-core/5.34.2/dcm4che-core-5.34.2.pom | grep \<parent -A4
  <parent>
    <artifactId>dcm4che-parent</artifactId>
    <groupId>org.dcm4che</groupId>
    <version>5.34.2</version>
  </parent>

```

Checking further:

```bash
$ curl -s https://maven.dcm4che.org/org/dcm4che/dcm4che-parent/ | grep 5\\.34
<a href="5.34.0/">5.34.0/</a> 23-Jun-2025 15:59 -
<a href="5.34.1/">5.34.1/</a> 16-Sep-2025 12:31 -

```

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:

```bash
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=> 

```

🎉 🎉 🎉

---

<div class="post-metadata">

### Author: ![jdf](https://clojureverse.org/user_avatar/clojureverse.org/jdf/32/3060_2.png) [@jdf](https://clojureverse.org/u/jdf)
#### Post date: [January 3, 2026, 3:03am UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795/6 "2026-01-03T03:03:03Z")

</div>

Thanks so much for this. It seems to have [happened before](https://stackoverflow.com/questions/78754993/adding-dcm4che-5-library-to-java-project-using-intellij-and-maven) with that project!

---

<div class="post-metadata">

### Author: ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)
#### Post date: [July 4, 2026, 3:03pm UTC](https://clojureverse.org/t/non-standard-maven-repo-pain-with-deps-dcm4che/14795/7 "2026-07-04T15:03:11Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
