46

This question might have been asked before.

Every time I open my eclipse it takes forever to update the Maven repo indexes.

I do not have any Maven Plugin installed on it but still does it.

Does anyone know how to disable this feature because this is becoming pain for me.

thanks

Makky
  • 17,117
  • 17
  • 63
  • 86

6 Answers6

76
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)
FrVaBe
  • 47,963
  • 16
  • 124
  • 157
5

To Disable index update eclipse . It shows enter image description here always.

Step 1

Go Window Tab->Preferences -> Maven

Step 2

Unchecked

  • Download repository index updates on startup
  • Do not automatically update dependencies from remote repositories

enter image description here

enter image description here

Step 3

Click Ok- >Restart Eclipse

loknath
  • 1,362
  • 16
  • 25
  • 1
    Does 'Unchecking' : Do not automatically update dependencies from remote repositories option would enable the auto update? – Vishal Gupta Sep 13 '18 at 13:28
2

Additionally, after disabling the update as suggested by FrVaBe, if keeps updating, try to update the user settings. It worked for me

Preferences->Maven->User Settings->Update Settings
Dipendra
  • 1,547
  • 19
  • 33
  • So, I should downvote FrVabe's answer just because it need 1 more step for me to work? you are crazy Makky. – Dipendra Jul 08 '13 at 03:29
  • I am not crazy but I think you are. May be you are not understanding it properly. What exactly you are answering here? – Makky Jul 08 '13 at 07:36
2

If you have something like this (note the <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:

            <updatePolicy>daily</updatePolicy>

or some other interval as described here.

carlspring
  • 31,231
  • 29
  • 115
  • 197
  • 1
    This is about updating the libraries but not the repository index - as asked in the question. – FrVaBe Mar 01 '12 at 13:37
0

I was using Eclipse Mars in Windows 10.Until application run as Administrator mode maven could not fetch the updates to .m2 folder.

0

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.

matthewSpleep
  • 250
  • 2
  • 7