-
Notifications
You must be signed in to change notification settings - Fork 321
Closed
Description
I initially reported this as an sbt issue , as it seems that the latest upgrade cannot resolve snapshot dependencies from sonatype.
I managed to manually reproduce this with just coursier. I had an older v2.0.7 installed, and it fetches the snapshot dependency just fine:
> cs fetch --no-default -r central -r sonatype:snapshots org.zeromq:jeromq:0.5.3-SNAPSHOT
https://oss.sonatype.org/content/repositories/snapshots/org/zeromq/jeromq/0.5.3-SNAPSHOT/maven-metadata.xml
100.0% [##########] 1.2 KiB (111B / s)
https://oss.sonatype.org/content/repositories/snapshots/org/zeromq/jeromq/0.5.3-SNAPSHOT/jeromq-0.5.3-20211128.145727-50.pom
100.0% [##########] 16.7 KiB (42.8 KiB / s)
https://oss.sonatype.org/content/repositories/snapshots/org/zeromq/jeromq/0.5.3-SNAPSHOT/jeromq-0.5.3-20211128.145727-50.jar
100.0% [##########] 506.2 KiB (467.4 KiB / s)
/Users/hmemcpy/Library/Caches/Coursier/v1/https/oss.sonatype.org/content/repositories/snapshots/org/zeromq/jeromq/0.5.3-SNAPSHOT/jeromq-0.5.3-20211128.145727-50.jar
/Users/hmemcpy/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/eu/neilalexander/jnacl/1.0.0/jnacl-1.0.0.jar
However, upgrading to the latest coursier 2.1.0-M1-1 fails to resolve this:
> ll $(which cs)
lrwxr-xr-x 1 hmemcpy admin 36B Dec 6 10:08 /usr/local/bin/cs -> ../Cellar/coursier/2.1.0-M1-1/bin/cs
> cs fetch --no-default -r central -r sonatype:snapshots org.zeromq:jeromq:0.5.3-SNAPSHOT
https://oss.sonatype.org/content/repositories/snapshots/org/zeromq/jeromq/0.5.3-SNAPSHOT/maven-metadata.xml
100.0% [##########] 353B (680B / s)
https://oss.sonatype.org/content/repositories/snapshots/org/zeromq/jeromq/0.5.3-SNAPSHOT/maven-metadata.xml
100.0% [##########] 353B (1.8 KiB / s)
Resolution error: Error downloading org.zeromq:jeromq:0.5.3-SNAPSHOT
not found: https://repo1.maven.org/maven2/org/zeromq/jeromq/0.5.3-SNAPSHOT/jeromq-0.5.3-SNAPSHOT.pom
not found: https://oss.sonatype.org/content/repositories/snapshots/org/zeromq/jeromq/0.5.3-SNAPSHOT/jeromq-0.5.3-SNAPSHOT.pom
This issue seems to affect sbt 1.6.0-RC1 as well, since it now depends on cs 2.1.0.
Am I holding this wrong, or does it seem like a bug?
Metadata
Metadata
Assignees
Labels
No labels