Transitive dependency resolution failure
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.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.