Stopping Maven index update eclipse

浪子不回头ぞ 提交于 2019-11-29 11:08:03

问题


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


回答1:


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)



回答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.




回答3:


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



回答4:


To Disable index update eclipse . It shows

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

Step 3

Click Ok- >Restart Eclipse




回答5:


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.




回答6:


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



来源:https://stackoverflow.com/questions/9514814/stopping-maven-index-update-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!