Comments (7)
Is there a sample dependency we could try this with?
from sbt.
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.
Is dependencyClasspath
as expected?
from sbt.
dependencyClasspath
Yes
from sbt.
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.
You might run sbt with -debug
to see what actual compiler invocation compile
is doing.
from sbt.
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)
- sbt in `--client` mode loses stdout/stderr of the forked processes in continuous (watch) task mode after the task ir reevaluated
- Error downloading org.scalameta:semanticdb-scalac_2.12.19:4.8.3 HOT 2
- Command alias doesn't work with the project prefix HOT 1
- Allow the sbt launcher to be called programmatcially without running into an `exit` call HOT 10
- Compile ClassCastException HOT 1
- "java.lang.Boolean cannot be cast to class java.lang.String" on Play's run task HOT 37
- Unreachable case warning (E121) in inline generic function HOT 2
- Pipelining prevents Java compilation with `compileOrder := JavaThenScala` config
- sbt-coursier does not enable configuration of the `FileCache.localArtifactsShouldBeCached` setting
- Ivy revision latest version Semver syntax is buggy. HOT 1
- "value getOffsetStatic is not a member of object scala.runtime.LazyVals" while testing Java-only library with ScalaTest + Scala 3.4.1 HOT 9
- Please update the documentation HOT 1
- Sbt server displays weird characters around dates on Windows HOT 6
- java exception during first attempt to do REPL completion by TAB in sbt console on Scala 3.4.1 HOT 3
- Error message in log when compiling: BufferStrategyPaintManager$ HOT 5
- Sbt build times substantially slower on Windows vs Ubuntu. HOT 1
- `sbt.PluginData#dependencyClasspath` contains multiple `scala-library/compiler/reflect/xml` jars HOT 6
- How to report slowness issues from built-in resolver repo.typesafe.com (scala.jfrog.io)? HOT 16
- NPE when compiling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt.