当Eclipse说它正在更新索引时,它在做什么?

时间:2021-11-05 10:43:15

When I load up a workspace (for Android Java development), Eclipse says in the status bar that it's updating indexes. The Progress tab reports that it's hitting maven.org.

当我加载一个工作空间(用于Android Java开发)时,Eclipse在状态栏中说它正在更新索引。进度标签显示它正在点击maven.org。

I read up on Maven - seems like a build manager. What I don't understand is why my Android workspace needs it or why it's hitting the server in the cloud. Do I need it? If not, how do I safely remove it?

我读过Maven——看起来像一个构建管理器。我不明白的是为什么我的Android工作空间需要它,或者为什么它会在云里攻击服务器。我需要它吗?如果没有,我如何安全地移除它?

当Eclipse说它正在更新索引时,它在做什么?

1 个解决方案

#1


93  

This is a general step that happens when m2e/m2eclipse (Maven integration for Eclipse) is installed, whether projects are actively using it or not.

这是在m2e/m2eclipse (Eclipse的Maven集成)安装时发生的一个常规步骤,不管项目是否正在积极地使用它。

This step can be disabled through the Eclipse preferences: Window / Preferences / Maven / "Download repository index updates on startup". This option is on the main "Maven" preference page (not a child page). Just uncheck the box to prevent this from happening.

可以通过Eclipse首选项:窗口/首选项/ Maven /“启动时下载存储库索引更新”来禁用此步骤。此选项位于主“Maven”首选项页面(不是子页面)上。只要取消复选框以防止这种情况发生。

当Eclipse说它正在更新索引时,它在做什么?

The file that this is downloading is an index of all the available dependencies available in the Maven central repository for use in Maven-enabled projects, allowing them to be easily chosen and searched against within the Eclipse UI. It is mainly a user convenience, and isn't mandatory.

正在下载的文件是Maven*存储库中所有可用依赖项的索引,这些依赖项可用于支持Maven的项目,允许在Eclipse UI中轻松选择和搜索它们。这主要是用户的便利,并不是强制性的。

#1


93  

This is a general step that happens when m2e/m2eclipse (Maven integration for Eclipse) is installed, whether projects are actively using it or not.

这是在m2e/m2eclipse (Eclipse的Maven集成)安装时发生的一个常规步骤,不管项目是否正在积极地使用它。

This step can be disabled through the Eclipse preferences: Window / Preferences / Maven / "Download repository index updates on startup". This option is on the main "Maven" preference page (not a child page). Just uncheck the box to prevent this from happening.

可以通过Eclipse首选项:窗口/首选项/ Maven /“启动时下载存储库索引更新”来禁用此步骤。此选项位于主“Maven”首选项页面(不是子页面)上。只要取消复选框以防止这种情况发生。

当Eclipse说它正在更新索引时,它在做什么?

The file that this is downloading is an index of all the available dependencies available in the Maven central repository for use in Maven-enabled projects, allowing them to be easily chosen and searched against within the Eclipse UI. It is mainly a user convenience, and isn't mandatory.

正在下载的文件是Maven*存储库中所有可用依赖项的索引,这些依赖项可用于支持Maven的项目,允许在Eclipse UI中轻松选择和搜索它们。这主要是用户的便利,并不是强制性的。