Stopping Maven index update eclipse

2019-02-05 10:58发布

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

6条回答
The star\"
2楼-- · 2019-02-05 11:24
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)
查看更多
啃猪蹄的小仙女
3楼-- · 2019-02-05 11:27

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

查看更多
祖国的老花朵
4楼-- · 2019-02-05 11:34

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
查看更多
时光不老,我们不散
5楼-- · 2019-02-05 11:36

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楼-- · 2019-02-05 11:39

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

查看更多
兄弟一词,经得起流年.
7楼-- · 2019-02-05 11:40

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.

查看更多
登录 后发表回答