question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to download snapshot dependencies with 2.1.0-M1

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
hmemcpycommented, Dec 12, 2021

Anyway, thanks again everyone for your answers, and thanks @alexarchambault for the revert. I am closing this issue as resolved!

1reaction
hmemcpycommented, Dec 12, 2021

@julienrf ah, of course… scopes. Keep getting tripped over them 😉 Yeah, definitely makes sense. Let’s hope this helps the next person who stumbles on a similar issue! Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.6.0-RC1 no longer downloads snapshot dependencies #6737
In our project we're depending on a snapshot version of a library (jeromq) from ... Unable to download snapshot dependencies with 2.1.0-M1 ......
Read more >
Maven fails to get SNAPSHOT builds from repository
If I build and deploy the dependency locally (i.e. into my local repo) all works normally. Basically, this works: <dependency> <groupId>com.
Read more >
Release Notes - Maven 2.1.0
Maven 2.1.0 is available for download. ... 2.1.0 Release Notes ... [MNG-3314] - offline build not running, when having SNAPSHOT dependencies ...
Read more >
Mule Maven Plugin fails during deploy/install with error
Mule Maven Plugin fails during deploy/install with error: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy ...
Read more >
Cannot resolve the SNAPSHOT dependency deployed via ...
I deploy the project “A” as a snapshot to a maven hosted repository(jar file, snapshot repository). I tried “deploy plugin” 3.0.0-M1 and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found