是否可以在 Nexus 中索引遗留存储库?
我正在尝试将大型 maven1 安装迁移到 maven2。我已经安装了 Nexus 1.5,创建了一个旧托管存储库及其 m2 虚拟视图。 Maven 2 构建脚本可以毫无问题地访问工件。唯一不起作用的是遗留存储库的关系索引。 现在,旧托管存储库没有任何选项可包含在搜索中,并且虚拟 m2 视图似乎也不包含在索引中。
有没有办法让旧的 Maven 1 存储库可以通过 Nexus 进行搜索?
I'm trying to migrate a large maven1 installation to maven2. I've installed nexus 1.5, created a legacy hosted repository and a m2 virtal view of it.
Maven 2 build scripts can access the artifacts without any problem. The only thing which is not working is the nexus-index for the legacy repository.
Now, the legacy hosted repository doesn't have any option to be include in search, and the virtual m2 view doesn't seem to be included in the index either.
Is there any way to make an old legacy maven 1 repository searchable by nexus ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
索引器不支持对 M1 存储库建立索引。由于 Maven3 正在放弃对 M1 布局的支持,因此我们不太可能添加它。另请注意,索引器代码已授予 Maven 项目,因此如果有人想通过此支持改进它,您可以在那里进行。
Indexing M1 repositories is not supported by the indexer. Since Maven3 is dropping support of M1 layouts, it's unlikely that we would add this. Also note that the Indexer code is being granted to the Maven project, so if someone wants to improve it with this support, you can do it there.
根据 将 Maven 1 遗留存储库代理为 Maven 2 存储库 (NEXUS- 29):
我想知道这是否是因为 Nexus Indexer 不索引遗留存储库(在这种情况下您可以实现或扩展索引器)或者它是否“只是”一个限制。也许在他们的 Jira 中打开一个问题以获得更准确的答案。
According to Proxying Maven 1 legacy Repositories as a Maven 2 Repo (NEXUS-29):
I wonder if this is because the Nexus Indexer doesn't index a legacy repository (in which case you can maybe implement or extend the indexer) or if it's "just" a limitation. Maybe open an issue in their Jira to get a more precise answer.