Eclipse loops endlessly: Invoking 'Maven Project Builder'

后端 未结 18 849
遇见更好的自我
遇见更好的自我 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:24

    I did something similar to Amos M. Carpenter response (https://stackoverflow.com/a/28713259/4470352)

    But also I created a new custom builder with the following configuration:

    1. Choose configuration type -> Program
    2. Location (text box) <= D:\apache-maven-3.3.9\bin\mvn.cmd (my custom maven)
    3. Working Directory (text box) <= ${workspace_loc:/project}
    4. Arguments (text area)
      • <= clean compile test-DproxySet=true -DproxyHost=a.proxy.host -DproxyPort=8080

    This compiles me the project with no progress bar, but i can see the progress in text console.

    The problem in my case is that every time I compile that project, I download a WSDL and I need to provide proxy configuration. When maven project builder plug-in tries to compile my project, fails and starts again in a loop.

    I have tried to setup it into settings.xml maven configuration file, but doesn't work for me, and providing proxy configuration in command line works.

    So creating that custom builder does the job and is a new approach.

    I hope it to helps you.

提交回复
热议问题