Giter Site home page Giter Site logo

Comments (7)

SethTisue avatar SethTisue commented on May 27, 2024

Is there a sample dependency we could try this with?

from sbt.

ethan2000 avatar ethan2000 commented on May 27, 2024

Is there a sample dependency we could try this with?

Because the maven.pkg.github.com is private resolver and it is github package, so the dependency jar is from another project under our company.

I am aware of that all the dependency jar will cached to the same directory by old cache strategy(ivy2), but for couriser it will split to different directory, such as (maven.pkg.github.com / repo1.maven.org / ...). So I found the dependency classes cannot be found under the directory named maven.pkg.github.com.

And as I said ,I am confused that copy the dependency jar to the repo1.maven.org directory, it can work.

from sbt.

SethTisue avatar SethTisue commented on May 27, 2024

Is dependencyClasspath as expected?

from sbt.

ethan2000 avatar ethan2000 commented on May 27, 2024

dependencyClasspath

Yes

from sbt.

ethan2000 avatar ethan2000 commented on May 27, 2024

That is a sample:
libraryDependencies ++= Seq(
"com.companyname" % "business-client-java11" % "1.55.6",
"org.springframework.retry" % "spring-retry" % "1.3.4",
"io.dropwizard.metrics" % "metrics-core" % "4.2.19",
)

"com.companyname" % "business-client-java11" % "1.55.6",
This dependency will be cached to ~/Library/Caches/Coursier/v1/https/maven.pkg.github.com

other dependencies will be cached to ~/Library/Caches/Coursier/v1/https/repo1.maven.org

You know the order of downloading dependencies is repo1.maven.org, and then from https/maven.pkg.github.com.
So some of them can be downloaded from public repo,but business-client-java11 only can be download from https/maven.pkg.github.com, because this our private repo.

I checked the dependencyClasspath, business-client-java11 is included.

from sbt.

SethTisue avatar SethTisue commented on May 27, 2024

You might run sbt with -debug to see what actual compiler invocation compile is doing.

from sbt.

SethTisue avatar SethTisue commented on May 27, 2024

I'm going to convert this to a discussion, as we don't yet have a way of reproducing this on anyone's computer but yours, and we don't have clear evidence that the root cause is a bug in sbt.

from sbt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.