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.

Why sbt can't resolve missing dependencies while maven can?

See original GitHub issue

sbt version: 0.13.15

I can’t resolve some dependencies with this build.sbt:

scalaVersion := "2.11.11"

libraryDependencies ++= Seq(
  "org.opentripplanner" % "otp" % "1.1.0"
)

It complained about module not found: com.conveyal#jackson2-geojson;0.8.

From the repository url on mvnrepository.com: https://mvnrepository.com/artifact/org.opentripplanner/otp/1.1.0

If you look at the “Compile Dependencies” section, it seems the resolve failed because com.conveyal » jackson2-geojson (0.8) library (and some other libraries too) doesn’t exist in the repository anymore.

However, with same configuration maven can resolve those missing libraries without issue:

    <dependencies>
        <dependency>
            <groupId>org.opentripplanner</groupId>
            <artifactId>otp</artifactId>
            <version>1.1.0</version>
        </dependency>
    </dependencies>

Anyone can explain what happened? How could I achieve same thing with sbt?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
damachecommented, Aug 9, 2019

is the work around for this to install with mvn and not depend on sbt?

0reactions
eed3si9ncommented, Aug 9, 2019

I am closing this since adding a resolver would work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve missing dependencies in Maven/sbt/ivy?
When these dependencies are dependencies of my dependencies those dependencies should have existed once. unresolved dependency: com.teamdev# ...
Read more >
New dependencies added to build.sbt are not seen by Intellij ...
One reason this might happen if the repository where the dependency is contained is not properly indexed. Refreshing the import will cause sbt ......
Read more >
Troubleshooting - sbt - Triplequote Hydra
If you are using Coursier, start by checking if dependency resolution succeeds if you remove the Coursier sbt plugin. This will help you...
Read more >
sbt Reference Manual — Combined Pages
Most of the time, you can simply list your dependencies in the setting libraryDependencies . It's also possible to write a Maven POM...
Read more >
Re: [sbt] Downloading Plugin dependency via repo proxy ...
I was able to set this up by using -Dsbt.boot.properties=sbt.boot.properties when calling the sbt-launch.jar and specify both an ivy-proxy and a maven-proxy.
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