Eclipse loops endlessly: Invoking 'Maven Project Builder'

后端 未结 18 870
遇见更好的自我
遇见更好的自我 2021-02-02 05:56

Ugh! My Eclipse is stuck in an endless loop:

  • No operations to display at this time
  • Refreshing Workspace Building
  • Workspace. Invoking \'Maven Pro
相关标签:
18条回答
  • 2021-02-02 06:41

    Delete project from eclipse(not from disk). And import as "General>Existing Projects into Workspace"

    0 讨论(0)
  • 2021-02-02 06:42

    I opened my module's .project file. There were two entries:

    <buildCommand>
      <name>org.maven.ide.eclipse.maven2Builder</name>
    </buildCommand>
    <buildCommand>
      <name>org.eclipse.m2e.core.maven2Builder</name>
    </buildCommand>
    

    I removed org.eclipse.m2e.core.maven2Builder entry and it magically fixed the problem.

    0 讨论(0)
  • 2021-02-02 06:42

    Eclipse on my workstation hangs every time I try to update maven project. The issue is not resolved even after trying a lot of resolutions/workarounds suggested by community. The only thing that works for me is to run mvn clean and install commands from command prompt. I end the task in task manager, run mvn commands and then re-launch eclipse. Running clean build after re-launching eclipse works fine.

    0 讨论(0)
  • 2021-02-02 06:44

    M2e, even in eclipse mars, seems to like infinite building.

    In my case, no such thing as repeated build commands, as listed bellow. The only thing that seems to work when the project tree is gigantic is:

    1. open eclipse
    2. Disable build automatically as soon as you open eclipse
    3. refresh the workspace and trigger manual a Crtl+B or a build all.
    4. Once eclipse is satisfied that it build the full project tree ... better have four core machine or you're gonna be waiting a while, you can finely put the build automatically option active. Eclipse seems not to go in a building spree after that. It will still go for a while scanning some folders, but activating the build automatically - once you've built it all before - is much faster than a new build all, and finally, eclipse becomes stable stops building infinitely.

    Otherwise, you're stuck with the deprecated mvn eclipse:eclipse ... and have to abandon the use of maven commands from within eclipse echosystem. M2e seems to have a really gigantic hard time cooperating with the beast.

    I still use m2e, but must say it is 100 times more difficult to swallow m2e than maven integration in netbeans. On the otherhand, eclipse is much faster for very large code base. Pick your poison, you'll always get bitten.

     <?xml version="1.0" encoding="UTF-8"?>
        <projectDescription>
            <name>rootPom</name>
            <comment></comment>
            <projects>
            </projects>
            <buildSpec>
                <buildCommand>
                    <name>org.eclipse.m2e.core.maven2Builder</name>
                    <arguments>
                    </arguments>
                </buildCommand>
            </buildSpec>
            <natures>
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
            </natures>
        </projectDescription>
    
    0 讨论(0)
  • 2021-02-02 06:45

    Eclipse -> Preferences -> Maven -> Installations Remove additional installation and using EMBEDDED helped me.

    The trigger was, that I wanted to have a separated maven setup for SLF4J: Class path contains multiple SLF4J bindings.

    0 讨论(0)
  • 2021-02-02 06:46

    it some times worked for me when i change my JAVA_HOME to a new location

    0 讨论(0)
提交回复
热议问题