maven m2eclipse 无法更新 Nexus 的索引
我设置了一个远程 Maven 存储库,可以成功上传工件并通过 POM 下载。我还看到该存储库与我的 m2eclipse 全局“Maven 存储库”中的 Maven 中心一起列出。
我的问题是,虽然 Maven Central 在 m2eclipse 中是可浏览和可更新的,但我的内部版本却不是,当它尝试更新时,我得到以下信息:
“无法更新 Nexus 的索引|http://devserver:8081/nexus/content/groups /public”
将该 URL 放入浏览器中确实有效。
解决方案是“我能够通过启动 Nexus Web 应用程序来修复它,然后我选择修复索引并在公共存储库组上重建索引。”
但我无法重建公共索引,实际上该索引对于我在同一办公室的同事来说工作得很好。
- 关系 Nexus 公共镜像 http://devserver:8081/nexus/content/groups/public *
有什么想法可以让 m2eclipse 正确索引吗?谢谢!
I have a remote maven repo set up and can successfully upload artifacts and download via POMs. I also see the repo listed along with maven central in my m2eclipse global 'Maven Repositories'.
My problem is that while Maven Central is browsable and updatable in m2eclipse, my internal one is not and when it tries to update I get this:
"Unable to update index for Nexus|http://devserver:8081/nexus/content/groups/public"
Putting that url in a browser does work.
A solution is "I was able to fix it by launching the Nexus webapp and I choose repair index and rebuild index on the Public Repository Group."
but I can not rebuild the public index, and actually the index works fine for my colleague in the same office.
- nexus
Nexus Public Mirror
http://devserver:8081/nexus/content/groups/public
*
Any ideas how to make m2eclipse to index properly? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题:我相信,当本地 m2e 索引损坏时,主要是在 Eclipse/VM 崩溃发生时,就会发生这种情况。我发现,对于我的配置,索引位于
.m2/repository/.cache/m2e
我关闭了 Eclipse,删除了该文件夹内的所有子文件夹,然后解决了问题。
我确信查找索引所在的文件就足够了,但是删除整个目录对我来说效果很好。
在删除之前,请确保您的远程 maven 存储库索引未损坏(右键单击 Nexus 公共存储库中的修复索引)。
I had the same problem: it happens, i believe, when the local m2e index becomes corrupted, mainly when an Eclipse/VM crash occurs. I have found that, for my configuration, the index resides in
.m2/repository/.cache/m2e
I closed Eclipse, deleted all the subfolders inside that folder, and I fixed the problem.
I'm sure that it suffice to seek the file(s) where lies the index, but deleting the whole directory worked fine for me.
Ensure, before deleting, that your remote maven repo index is not corrupt (right-click repair Index in the public repository of Nexus).
当我删除 C:\Users\Pratik.m2\repository 中的 .cache 文件夹时,我的问题得到解决,如果上述所有步骤均不起作用,请尝试此操作
My problem resolves when i deleted .cache folder in C:\Users\Pratik.m2\repository, if all the above steps not working do try this