我想sbt publish
用一些校验和发布我的 JAR,但是我似乎无法实现这一点。
文档说默认情况下启用校验和,我可以确认checksums
返回我md5
并sha1
在 sbt 中。如果我这样做,我还可以看到生成的校验和sbt publishLocal
。但是,当我sbt publish
在 CI 服务器上将 JAR 发布到我们公司的 Artifactory 服务器时,没有校验和。
我错过了什么?
更多信息:
- sbt 1.4.6
publishMavenStyle := true
publishTo := <internal Artifactory>
- 我会说它特定于我公司的 Artifactory,因为
publishLocal
效果很好。 publish / checksums
checksums
返回与 just which 是md5
和值列表相同的东西sha1
(据我所知,sbt 支持的仅有的两个值)。- 我试图关闭 Coursier(只是一种预感)并且它的行为相同。
我已经尝试了调试日志级别,这是构建结束时的内容:
[debug] Done packaging.
20:27:44
[debug] CLIENT ERROR: Not Found url=https://<artifactory>/artifactory/maven-local/com/avast/ip-info_2.13/2.8.28/ip-info_2.13-2.8.28.pom
20:27:44
[info] published ip-info_2.13 to https://<artifactory>/artifactory/maven-local/com/avast/ip-info_2.13/2.8.28/ip-info_2.13-2.8.28.pom
20:27:44
[debug] CLIENT ERROR: Not Found url=https://<artifactory>/artifactory/maven-local/com/avast/ip-info_2.13/2.8.28/ip-info_2.13-2.8.28.jar
20:27:44
[info] published ip-info_2.13 to https://<artifactory>/artifactory/maven-local/com/avast/ip-info_2.13/2.8.28/ip-info_2.13-2.8.28.jar
20:27:44
[debug] CLIENT ERROR: Not Found url=https://<artifactory>/artifactory/maven-local/com/avast/ip-info_2.13/2.8.28/ip-info_2.13-2.8.28-sources.jar
20:27:44
[info] published ip-info_2.13 to https://<artifactory>/artifactory/maven-local/com/avast/ip-info_2.13/2.8.28/ip-info_2.13-2.8.28-sources.jar
20:27:44
[success] Total time: 0 s, completed Jan 28, 2021, 7:27:44 PM