eclipse 停止Maven索引更新日食
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9514814/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Stopping Maven index update eclipse
提问by Makky
This question might have been asked before.
这个问题以前可能有人问过。
Every time I open my eclipse it takes forever to update the Maven repo indexes.
每次我打开我的 Eclipse 时,它都需要永远更新 Maven 存储库索引。
I do not have any Maven Plugin installed on it but still does it.
我没有安装任何 Maven 插件,但仍然安装。
Does anyone know how to disable this feature because this is becoming pain for me.
有谁知道如何禁用此功能,因为这对我来说变得很痛苦。
thanks
谢谢
回答by FrVaBe
Window -> Preferences -> Maven -> Download repository index updates on startup (uncheck)
maybe also useful for you
也许对你也有用
Window -> Preferences -> Maven -> Do not automatically update dependencies from remote repositories (check)
回答by carlspring
If you have something like this (note the <updatePolicy>
):
如果你有这样的东西(注意<updatePolicy>
):
<repositories>
<repository>
<id>foo-bar-repository</id>
<url>http://foo.bar.com/repository</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
This can screw up your Eclipse and force it to try downloading the jars each time. You can set this to:
这可能会搞砸你的 Eclipse 并迫使它每次尝试下载 jars。您可以将其设置为:
<updatePolicy>daily</updatePolicy>
or some other interval as described here.
回答by Dipendra
Additionally, after disabling the update as suggested by FrVaBe, if keeps updating, try to update the user settings. It worked for me
此外,按照 FrVaBe 的建议禁用更新后,如果继续更新,请尝试更新用户设置。它对我有用
Preferences->Maven->User Settings->Update Settings
回答by loknath
To Disable index update eclipse . It shows always.
禁用索引更新 eclipse 。它总是显示 。
Step 1
第1步
Go Window Tab->Preferences -> Maven
转到窗口选项卡-> 首选项-> Maven
Step 2
第2步
Unchecked
未选中
- Download repository index updates on startup
- Do not automatically update dependencies from remote repositories
- 在启动时下载存储库索引更新
- 不要从远程存储库自动更新依赖项
Step 3
第 3 步
Click Ok- >Restart Eclipse
单击“确定”->“重新启动 Eclipse”
回答by kanchana sankalpa
I was using Eclipse Mars in Windows 10.Until application run as Administrator mode maven could not fetch the updates to .m2 folder.
我在 Windows 10 中使用 Eclipse Mars。直到应用程序以管理员模式运行 maven 无法获取 .m2 文件夹的更新。
回答by matthewSpleep
Go to your project preferences and then go to Builders. Disable the Maven builder. This should stop the index updates. I guess you will need to do this on each project in your workspace, I don't think you can do this for the whole workspace.
转到您的项目首选项,然后转到 Builders。禁用 Maven 构建器。这应该停止索引更新。我想您需要在工作区中的每个项目上执行此操作,我认为您无法为整个工作区执行此操作。