Bintray does not sync one of the artifacts of the package to the jcenter

雨燕双飞 提交于 2020-01-11 03:54:07

问题


We've published a package with two artifacts in it (android and os) to Bintray: https://dl.bintray.com/gojuno/maven/com/gojuno/commander/

Then we've enabled sync with jcenter for this package, but only one of the artifacts is in sync (android is synched while os is not):

https://jcenter.bintray.com/com/gojuno/commander/

I contacted Bintray through Inbox on bintray.com, Contact Us on bintray.com, Email and Twitter and haven't received reply anywhere, this issue is blocking for the project.

I saw similar issue was resolved through StackOverflow Bintray and JCenter not in Sync, so this is my hope.


回答1:


An inclusion to JCenter always uses an allocated path prefix to avoid accidental file overwrites by other users. However, the 'commander' package contains files with no common base path: '/com/gojuno/commander/os' AND '/com/gojuno/commander/android'

The best practice we recommend is creating a new package and not creating more than one path prefix for a package. If you wish keep working like this, please note that you will have to submit an inclusion request for each path prefix.

As for now you may proceed working on the same groupID path prefix with your different sub-modules.

We hope this clarifies.




回答2:


usually when changing the artifact path you won't be able to resolve your content through JCenter although it was previously included. The reason for this is that the inclusion of your 'commander' package in JCenter is for the files’ path. Therefore, it was originally included under the path prefix 'com/gojuno/commander/android/'.

However, we have re-linked your package on the GroupId level (com/gojuno/commander) so every sub-module of your 'commander' package, will be added automatically and be synced with JCenter.



来源:https://stackoverflow.com/questions/43468385/bintray-does-not-sync-one-of-the-artifacts-of-the-package-to-the-jcenter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!