简体   繁体   English

使用 eclipse 重建 maven 索引没有任何进展

[英]Rebuilding maven indexes using eclipse makes no progress

i am having an issue with maven indexes rebuilding using eclipse. When I start, it just says Updating index for repository: central|https://repo.maven.apache.org/maven2我在使用 eclipse 重建 maven 索引时遇到问题。当我开始时,它只是说Updating index for repository: central|https://repo.maven.apache.org/maven2

But there is no progress, or even error for tens of minutes, or nothing, it just doesn't give me any feedback.但是没有任何进展,甚至几十分钟报错,或者什么都没有,就是不给我任何反馈。

I have also tried with other eclipse instance on my computer and problem was the same.我也尝试过在我的计算机上使用其他 eclipse 实例,问题是一样的。

I am running Eclipse Neon (4.6.0 m1).我正在运行 Eclipse Neon (4.6.0 m1)。

Also i Have tried to delete nexus folder from my org.eclipse.m2e.core folder in workspace.我还尝试从工作区中的org.eclipse.m2e.core文件夹中删除 nexus 文件夹。

Tried with eclipse Kepler on another computer on same.network, and there is a progress (gz file being downloaded).在same.network的另一台电脑上用eclipse Kepler试过,有进展(正在下载gz文件)。

I am also very sure that i don't have proxy or any other limitations on my computer or.network.我也非常确定我的计算机或网络没有代理或任何其他限制。

The progress indicator appears not to work. 进度指示器似乎不起作用。 Left mine alone for about 8 minutes and all of a sudden it was done. 独自一人呆了大约8分钟,突然间一切都完成了。 (During which I had googled and found this question.) (在我用Google搜索并发现此问题的过程中。)

Once it completed, you can see entries under the Global Repositories > central "folder". 完成后,您可以在“全局存储库”>中央“文件夹”下看到条目。

完成的存储库索引

I am using the Eclipse Mars release, btw. 我正在使用Eclipse Mars版本,顺便说一句。

If while the update is taking place you start a maven operation, eg, Project(right-click), Run, Maven build..., "goals: dependency:validate", a "User Operation is Waiting" popup will show a progress monitor.如果在进行更新时您启动了 maven 操作,例如,项目(右键单击)、运行、Maven 构建...、“目标:依赖项:验证”,“用户操作正在等待”弹出窗口将显示进度监视器。 It will also show your waiting maven operation.它还将显示您等待 maven 操作。 (Offering this because no answer to this question seemed satisfactory, and it still shows up as the first hit when you query "eclipse progress monitor stuck at 0%".) (提供这个是因为这个问题的答案似乎没有令人满意,并且当您查询“eclipse progress monitor stuck at 0%”时它仍然显示为第一个命中。)

Eclipse policy has changed to not rebuild the index now. Eclipse 政策已更改为现在不重建索引。 When directly modifying pom.xml, it has been changed to be suggested in the form of auto complete.直接修改pom.xml时,已经改为自动完成的形式提示。

在此处输入图像描述

https://github.com/eclipse-m2e/m2e-core/issues/914 https://github.com/eclipse-m2e/m2e-core/issues/930 https://github.com/eclipse-m2e/m2e-core/issues/914 https://github.com/eclipse-m2e/m2e-core/issues/930

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

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