有没有可能删除存储Maven中心的库? [英] Is there any possibility of deleting libraries stored maven central?

查看:107
本文介绍了有没有可能删除存储Maven中心的库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点好奇gradle如何处理Android studio中的库链接。我知道所有这些库都存储在maven central中,但很多人问我如果这些库被删除或者所有者从那里删除了自己的库或者可能会一个特定的版本,我们已经在库中实现。



所以我的问题在这里,是否有任何可能性库或任何特定版本的库将从maven中央服务器??如果是,那么我永远无法编译我的代码?



任何人都对此有深入的了解?

解决方案

您的问题的简单答案是:不。



Maven中心中的工件不会被删除,因为它可能会出现问题,意味着其他人的构建可能会失败也不可能更改部署到中央的工件。另请参阅常见问题解答在中央



此外,我总是建议使用一个存储库管理器,以防止这种情况发生,如果它发生,我不相信,导致它会打破Maven Central的可靠性。

I am little bit curious on how gradle handles libraries linking in Android studio.I know all these libraries are stored in maven central but lots of people asked me what if those gets deleted or owner deletes his own library from there or may be a particular version that we have already implemented in library.

SO my question here, Is there any possibility of library or any particular version of library will get delete from maven central server?? If yes then i would never able to compile my code?

Anyone has deep knowledge about this?

解决方案

The simple answer to your question is: No.

Artifacts in Maven central will not deleted cause it would could problems as you described which means other peoples build could fail. It is also not possible to change artifacts which are deployed to central. See also the FAQ on Central

Furthermore i would always suggest to use a repository manager which would prevent such situations if it ever will happen which i don't believe, cause it would break the reliability of Maven Central.

这篇关于有没有可能删除存储Maven中心的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆