Stopping Maven index update eclipse

白昼怎懂夜的黑 提交于 2019-11-30 07:49:53
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)

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.

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

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

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.

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

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