Nexus 在互联网服务器上?
我正在阅读 使用 Nexus 进行存储库管理,它的重点似乎充当本地代理。相反,我想用它来分发自定义工件(数量很少,比如不到 10 个)。其中一些可能是开源的,一些可能是公司或另一家公司私有的(我是顾问)。
在我读完整本书并发现 Nexus 不适合我之前,您认为这是一个合理的用例吗?我才刚读到第2章,所以我不知道Nexus可以为单个工件提供什么样的授权。一种选择是在不同的路径中安装 Nexus 的多个副本,我猜使用 http 密码,尽管这可能不是最聪明的。
这个问题的目的是了解 Nexus 是否适合将私有工件分发给具有不同权限的不同公司,并在互联网上工作,而不是在内部网上工作,否则我应该寻找其他选择。谢谢!
I am reading Repository Management with Nexus and the focus of it seems to act as a local proxy. Instead I would like to use it to distribute custom artifacts (very few of them, like less than 10). Some of them might be open source and some private to a company or another company (I'm a consultant).
Before I read the whole book and find out that Nexus is not for me, do you think this is a reasonable use case? I'm only at chapter 2, so I don't know what kind of authorization can Nexus provide for a single artifact. One option would be to install multiple copies of Nexus in different path, with http password I guess, albeit probably not the smartest.
The purpose of this question is to know if Nexus is suitable to distribute private artifacts to different companies with different privileges and to work on the internet, not in a intranet, or I should look for other options. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为对于 Nexus 安装来说这是一个非常合理的要求。我使用过 Artifactory 和 Nexus(两个最流行的 Maven 存储库),发现 Nexus 更加灵活且功能齐全。 Sonatype 的设置与您所询问的开源工件托管类似。在这种情况下,我相信安全性只限制上传,而不限制下载,但我 99% 确信下载也可以受到保护。 JBoss 还有一个大型公共 Nexus 安装。
但请记住,Sonatype 有 Nexus 的 OSS 版本和商业版本。您正在寻找的隔离可能只是一个商业功能。但我仍然会推荐 Nexus 来实现您所描述的目的,只要成本不是太高。 提示:我想当你读到第 6 章时,你就会开始真正找到你想要的东西。
I think this is a very reasonable thing to ask of a Nexus installation. I've used both Artifactory and Nexus (2 of the most popular Maven repos), and found Nexus to be much more flexible and full-featured. Sonatype has a similar setup to what you are asking about for their open source artifact hosting. In that case, I believe the security only restricts uploads, not downloads, but I'm 99% certain that downloads can also be secured. JBoss also has a large public Nexus installation.
Do keep in mind, though, that Sonatype has both an OSS edition and a commercial edition of Nexus. The segregation you're looking for may be a commercial feature only. But I would still recommend Nexus for the purpose you described, as long as the cost isn't prohibitive. Hint: I think you'll start to really find what you're looking for when you get to chapter 6.
Nexus 允许您同时拥有托管存储库和代理存储库。除此之外,它还允许您拥有虚拟存储库和组。组可用于将存储库分组到一个名称下。所以...您可以设置一个存储库,其中包含一些仅对您的客户端可见的工件,另一个用于您的 OSS 工件,然后将它们分组到某个客户端。
您还可以使用专业版,该版本是付费的,并且据我记得有此类功能。
Nexus allows you to have both hosted and proxy repositories. Apart from this it allows you to have virtual repositories and groups. Groups can be used for grouping your repositories under one name. So... you can set up a repository containing some artifacts that should be visible only to your clients, another one for your OSS artifacts and then group them for some client.
You can also use the Pro version, which is paid, and, as far as I recall had this sort of feature.