简体   繁体   English

为什么将Bintray与Maven Central同步?

[英]Why sync bintray with maven central?

I'm building few projects and publish them to bintray. 我正在构建几个项目,并将其发布到Bintray。 After that i can add resolver that points to my repository and use any library in that repo. 之后,我可以添加指向我的存储库的解析器,并使用该存储库中的任何库。

So what is the point to sync your package with maven central? 那么将软件包与Maven Central同步的意义何在?

i see these reasons: 我看到这些原因:

  1. my package will be available in mvnrepository search. 我的软件包将在mvnrepository搜索中可用。 I can see usages of my package in other libraries 我可以在其他库中看到我的软件包的用法
  2. maven central is default resolver, so i don't need add any other resolvers in sbt Maven Central是默认的解析器,因此我不需要在sbt中添加任何其他解析器

Are there any other reasons? 还有其他原因吗? Thanks! 谢谢!

From bintray blog : 来自bintray 博客

Maven Central is “hardwired” into the super-popular Maven 2. As such, it is being used by many Maven users of course, but also by Ivy, and even by Gradle users (those not familiar with Bintray's 'jcenter()' repo yet). Maven Central被“硬连接”到超级受欢迎的Maven 2中。因此,许多Maven用户当然会使用它,但Ivy甚至Gradle用户(不熟悉Bintray的“ jcenter()”存储库的人)都在使用它。然而)。

So you need to deploy your artifact into Maven Central, but it is somehow painful so Sync is better option. 因此,您需要将您的工件部署到Maven Central中,但是这有点麻烦,因此Sync是更好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM