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.

Transitive dependency resolution failure

See original GitHub issue

I get an error when trying to pull in scalameter here’s a minimal example.

Run test to see the error, it’s trying to pull down https://repo1.maven.org/maven2/org/mongodb/casbah_2.11/3.1.1/casbah_2.11-3.1.1.jar which doesn’t exist.

[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) coursier.ResolutionException: 1 not found
[error]   https://repo1.maven.org/maven2/org/mongodb/casbah_2.11/3.1.1/casbah_2.11-3.1.1.jar
[error] Total time: 1 s, completed Jan 12, 2017 10:46:53 AM
sbt=0.13.13
coursier=1.0.0-M15-1

here’s a build.sbt to reproduce it.

lazy val commonSettings = Seq(
  organization := "com.example",
  version := "0.1.0",
  scalaVersion := "2.11.8",
  libraryDependencies ++= Seq(
    "com.storm-enroute" %% "scalameter" % "0.8.2" % "test" 
  )
)

lazy val root = (project in file("."))
  .settings(commonSettings: _*)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
alexarchambaultcommented, Apr 25, 2017

@pedrofurla That looks like https://github.com/coursier/coursier/issues/499 (bad interaction between features, involving the one fixing the issue here). Wiping the directory in cache that would contain the JAR that is attempted to be downloaded should fix that (if it tries to download https://foo.com/bar/a.jar, wipe ~/.coursier/cache/v1/https/foo.com/bar). The current master of coursier doesn’t require this anymore, 1.0.0-RC2 will include the fix.

1reaction
alexarchambaultcommented, Feb 28, 2017

This is fixed in the current master, and will be included in 1.0.0-M15-2 (about to be released). Don’t hesitate to re-open if you still face this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Silent transitive dependency failure #9580 - gradle ... - GitHub
The application demonstrates an issue with dependency resolution when a dependency is published to maven, using the maven-publish plugin, with ...
Read more >
Understanding dependency resolution - Gradle User Manual
Dependency resolution will fail if the required artifacts are not available in any repository specified by the build, even if the local cache...
Read more >
Maven - Transitive dependencies are not resolved for artifact ...
To successfully resolve transitive dependencies, project B's jar and pom.xml must be accessible in the Maven repository.
Read more >
How to Resolve a Version Collision of Artifacts in Maven
In this tutorial, we'll see how to resolve version collision of artifacts in Maven. ... Excluding a Transitive Dependency From an Artifact.
Read more >
Introduction to the Dependency Mechanism - Apache Maven
Transitive Dependencies. Excluded/Optional Dependencies. Dependency Scope; Dependency Management. Importing Dependencies; Bill of Materials ...
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