Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Eclipse doing when it says that it's updating indexes?

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.

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?

enter image description here

like image 897
AngryHacker Avatar asked Dec 27 '11 18:12

AngryHacker


People also ask

Why does IntelliJ indexing take so long?

If indexing takes a significant amount of time, then it's likely that your project has more than two modules. Normally, you don't need all of them at same time. If this is the case, you can temporarily set aside (unload) the modules that you don't need right now.

What is updating indexes in PyCharm?

Indexing in PyCharm is responsible for the core features of the IDE: code completion, inspections, finding usages, navigation, syntax highlighting, and refactorings. It starts when you open your project, switch between branches, after you load or unload plugins, and after large external file updates.


1 Answers

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

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 m2e Disable repository index updates on startup

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.

like image 151
ziesemer Avatar answered Sep 23 '22 02:09

ziesemer