Stopping Maven index update eclipse

后端 未结 6 2021
盖世英雄少女心
盖世英雄少女心 2020-12-29 18:16

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 in

相关标签:
6条回答
  • 2020-12-29 18:49

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

    0 讨论(0)
  • 2020-12-29 19:04

    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

    0 讨论(0)
  • 2020-12-29 19:04

    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.

    0 讨论(0)
  • 2020-12-29 19:09

    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
    
    0 讨论(0)
  • 2020-12-29 19:11

    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.

    0 讨论(0)
  • 2020-12-29 19:15
    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)
    
    0 讨论(0)
提交回复
热议问题