Reputation: 17461
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
Upvotes: 46
Views: 46482
Reputation: 21
I was using Eclipse Mars in Windows 10.Until application run as Administrator mode maven could not fetch the updates to .m2 folder.
Upvotes: 0
Reputation: 1372
To Disable index update eclipse . It shows always.
Step 1
Go Window Tab->Preferences -> Maven
Step 2
Unchecked
Step 3
Click Ok- >Restart Eclipse
Upvotes: 5
Reputation: 1557
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
Upvotes: 2
Reputation: 32607
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.
Upvotes: 2
Reputation: 49341
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)
Upvotes: 76
Reputation: 260
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.
Upvotes: 0