首页 > 解决方案 > bintray 创建目录声称要上传工件,但它是空白的

问题描述

我们正在评估 bintray 并具有以下构建文件

https://github.com/deanhiller/webpieces/blob/evaluateBintray/build.gradle

(不确定构建文件是否重要,因为它报告它正在正确上传每个工件)。我看到这样的东西...

> Task :webserver-plugins:plugin-backend:bintrayUpload
Uploaded to 'https://api.bintray.com/content/deanhiller/maven/plugin-backend/2.0.19/org/webpieces/plugin-backend/2.0.19/plugin-backend-2.0.19-sources.jar'.
Uploading to https://api.bintray.com/content/deanhiller/maven/plugin-backend/2.0.19/org/webpieces/plugin-backend/2.0.19/plugin-backend-2.0.19-javadoc.jar...
Uploaded to 'https://api.bintray.com/content/deanhiller/maven/plugin-backend/2.0.19/org/webpieces/plugin-backend/2.0.19/plugin-backend-2.0.19-javadoc.jar'.
Uploading to https://api.bintray.com/content/deanhiller/maven/plugin-backend/2.0.19/org/webpieces/plugin-backend/2.0.19/plugin-backend-2.0.19.jar...
Uploaded to 'https://api.bintray.com/content/deanhiller/maven/plugin-backend/2.0.19/org/webpieces/plugin-backend/2.0.19/plugin-backend-2.0.19.jar'.
Uploading to https://api.bintray.com/content/deanhiller/maven/plugin-backend/2.0.19/org/webpieces/plugin-backend/2.0.19/plugin-backend-2.0.19.pom...
Uploaded to 'https://api.bintray.com/content/deanhiller/maven/plugin-backend/2.0.19/org/webpieces/plugin-backend/2.0.19/plugin-backend-2.0.19.pom'.

真正奇怪的部分是它会创建目录

https://dl.bintray.com/deanhiller/maven/org/webpieces/plugin-backend/2.0.19

但是在我部署所有内容然后文件出现之前什么都没有。创建目录但在上传阶段没有文件似乎有点奇怪。然后,我的最后一个问题是,这些工件是否仅在那里可用,或者它们是否也发布到 jcenter 或 maven Central。我真的说不出来。

我们正在尝试使用 bintray 关闭 sonatype,因为每次上传时,我们都会在 sonatype 上遇到异常(过去 4 天我们无法发布)。到目前为止,在 bintray 中,每次上传都成功(一次 176 个工件)。

可能我需要更多的东西才能把这些东西送到 jcenter 或 maven central 吗?

谢谢,院长

标签: gradlebintray

解决方案


我现在确实看到了这些文件。

如果工件不是published,则只有授权用户才能查看和下载内容,这意味着未经授权的用户(例如匿名用户)将看不到您下载存储库中的内容。

您的未链接到jcenter ,因此它们不会自动发布在 jcenter 上。
我建议将您的软件包包含在 jcenter 中。


推荐阅读