tools.deps does not handle maven relocations

Description

{:deps {org.clojure/clojure {:type :mvn :version "1.8.0"} bouncycastle/bctsp-jdk14 {:type :mvn :version "138"}}}

Fails with:

Error building classpath. Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central (https://repo1.maven.org/maven2/)

The pom for that dep shows a "Relocation":

<project> <modelVersion>4.0.0</modelVersion> <groupId>bouncycastle</groupId> <artifactId>bctsp-jdk14</artifactId> <version>138</version> <distributionManagement> <relocation> <groupId>org.bouncycastle</groupId> <artifactId>bctsp-jdk14</artifactId> <version>1.38</version> </relocation> </distributionManagement> </project>

This fails during download-dep, but may be processing improperly expanded deps.

Reported by @spelufo in Slack.

Environment

None

Activity

Show:

Sean Corfield June 19, 2023 at 5:35 PM

This will affect anyone using the mysql/mysql-connector-java lib who tries to update from 8.0.30 to 8.0.31 or later, since that is now a relocation (they've switched to com.mysql/mysql-connector-java).

Details

Assignee

Reporter

Priority

Created August 31, 2017 at 6:46 PM
Updated November 11, 2024 at 4:31 PM