问题标签 [coursier]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
coursier - 如何在 coursier fetch/launch 中使用 `.netrc` 文件
我非常需要启动 jar,其中包含所有依赖项并配置了主类。我唯一需要做的就是获取、缓存(这很重要,因为 jar 很大)和启动,我想用一个班轮完成所有这些。
Coursier 工作得很好,直到它需要通过身份验证:
我已经配置了.netrc,我想知道快递员是否可以选择使用那里的凭据(curl 和 python 可以做到这一点)。
或者,有没有办法通过命令行显式地将凭据传递给存储库?
scala - 如何在 Ammonite 脚本中固定 SNAPSHOT 依赖项的版本
Ammonite 可以从 Maven 存储库下载依赖项。
我正在使用 SNAPSHOT 依赖项,并且我想始终使用缓存版本,以避免使用可能未经测试的较新版本。这可能吗?
我知道 Ammonite 最近使用 Coursier 和 Ivy,所以我发现的一些信息可能已经过时了。
我的一些想法是将当前的 SNAPSHOT 版本安装在另一个名称的本地存储库中。
maven - sbt:在使用凭据获取私有 maven 存储库时添加 http 标头
我尝试在我的配置中使用凭据build.sbt
,以便从gitlab 私有 maven 存储库中检索私有工件。
但正如 sbt 文档所述:
凭据文件是一个属性文件,其中包含密钥领域、主机、用户和密码。
和 gitab 私人 Maven 文档状态:
如果项目是私有的,或者您想将 Maven 工件上传到 GitLab,则需要提供凭据以进行授权。仅支持个人访问令牌和 CI 工作令牌。部署令牌和常规用户名/密码凭证不起作用。
获取或推送工件到 gitlab maven 私有存储库时进行身份验证的唯一方法是使用 mavensettings.xml
文件:
我找到了一种解决方法来推送我的私有工件(本地中间步骤),但我无法像libraryDependencies
在其他 scala 存储库中一样使用这些私有工件。
- 无论如何,sbt 是否可以根据需要获取我的私有 gitlab 存储库
httpHeaders
? - 您是否知道检索我的私有工件的任何解决方法(多步骤获取)?
scala - 如何更改 Ammonite、coursier 缓存位置?
我在 ammonite 中使用 Coursier 从私人仓库下载 jar。但是,出于与 Intellij 集成的原因,我想更改 coursier 用于缓存工件的位置。我想指出我当地的常春藤。有没有办法做到这一点 ?
scala - 如何通过代理使用 coursier
Coursier 是一个 Scala 下载工具。说明说要使用-Dhttps.proxyHost
,但它对我不起作用:
您如何通过代理使用 coursier(在 Ubuntu 上)?
java - Bazel sha256 校验和
我正在努力将我们的项目迁移到 Bazel。
工作空间
建造
当我运行时:
输出
org.apache.commons:commons-lang3:3.9 jar 确实可以下载,以及 sha1 和 md5 哈希。com.foo:bar:1.0.0-SNAPSHOT jar 不会被下载。sha1 和 md5 确实被下载了。
我认为我的问题是我们的 repo 没有任何 sha256 哈希可供下载,因此获取(或构建)失败并出现该错误。但是,当我查看实际的 rules_jvm_external https://github.com/bazelbuild/rules_jvm_external#checksum-verification时,似乎 sha256 不是强制性的?
关于我做错了什么的任何想法?
Bazel 1.1.0 Windows 10 企业版,版本 1803,操作系统内部版本 17134.1069
sbt - sbt 严格模式下的奇怪版本冲突
为什么 sbt (1.3.5) 在严格模式下无法解析相同的依赖关系?
预期版本和实际版本相同。但是,显式版本覆盖有效,但解决所有传递依赖项很烦人。
是 sbt 还是 coursier bug?
sbt - sbt 1.3.8 publishLocal creates a jar that sbt update can't resolve. scala version is appended to jar name
I published some libraries using sbt publishLocal
it worked and published to my ~/.ivy2/local
dir.
I then have a project that depends on these libraries but sbt update
can't find them.
specifically, my project has these dependencies:
sbt update
has this error:
when I look in the dir I can see the published jars but their name has the scala version appended, which is why the update
resolving fails, I think :
If I publish to a repo for real I can resolve the libs.
Does anyone know the sbt incantation to fix this? ;-)
Cheers Karl
Update:- I think coursier is the problem, not sure how to tell it to look for lib2_2_12.jar. Could it have a bad cached reference?
Update:- disabling coursier worked from the sbt REPL I can run
and then
and that worked, but setting it back to true update failed again, so this looks like a coursier issue.
Update: coursier fetch from the command line worked!!
downloaded the transitive dependencies and found my jar in my local ivy2 dir
so this is back to looking like an sbt - coursier interaction issue
scala - Scala Coursier 自定义常春藤存储库
我想试一试 coursier 的工件提取器,但我们正在使用 Artifactory 用于 maven 和 ivy 存储库,我不知道如何使用 coursier 进行设置。在文档中,他们提供了这个 ENV 示例。多变的:
如果我有这个 URL 的人工常春藤回购:http://myivyrepo.tld/joint-ivy-releases
它也有一些自定义模式:
如何使用 Coursier 进行设置?
sbt - SBT:描述相对于另一个(传递)依赖的外部依赖?
为了避免 jar hell,我想相对地引用一个依赖项。
例如,当我将依赖项添加到"org.http4s" %% "https-circe" % "0.21.1"
:
我想"circe-literal"
在版本中添加一个依赖项,它是由 SBT 的中介自动解决的。在这个例子"0.13.0"
中。这可能吗?