m2eclipse error

前端 未结 17 1104
忘掉有多难
忘掉有多难 2020-12-07 09:58

I am developing a web application with Eclipse and I generate the project with a maven archetype.

When I enable maven dependency management, Eclipse mark some errors

相关标签:
17条回答
  • 2020-12-07 10:13

    I also had same problem with Eclipse 3.7.2 (Indigo) and maven 3.0.4.

    Eclipse wasn't picking up my maven settings, so this is what I did to fix the problem:

    1. Window - Preferences - Maven - Installations

      • Add (Maven 3.0.4 instead of using Embedded)
      • Click Apply & OK
    2. Maven > Update Project Configuration... on project (right click)

    3. Shutdown Eclipse

    4. Run mvn install from the command line.

    5. Open Eclipse

    Those steps worked for me, but the problem isn't consistent. I've only had with issue on one computer.

    0 讨论(0)
  • 2020-12-07 10:13

    This error bothered me for two days. I tried all kinds of solutions, nothing worked. Finally I give up and tried a radical approach. and it worked! Here are the steps:

    1. Save a copy of the pom.xml,
    2. deleted all text in pom.xml
    3. Let eclipse do a clean rebuild, of course everything will be broken.
    4. pasted back everything in the original pom.xml
    5. let Eclipse build again

    I guess it was "indeterministic" as the following article said.

    http://wiki.eclipse.org/M2E_plugin_execution_not_covered

    0 讨论(0)
  • 2020-12-07 10:13

    I had the same problem but with an other cause. The solution was to deactivate Avira Browser Protection (in german Browser-Schutz). I took the solusion from m2e cannot transfer metadata from nexus, but maven command line can. It can be activated again ones maven has the needed plugin.

    0 讨论(0)
  • 2020-12-07 10:14

    Just go to your user folder, inside it there's a ".m2" folder, open it and delete the folder "repository". Go to eclipse, clean your project, then right click->Maven->Update Project .. and you are ready to go.

    0 讨论(0)
  • 2020-12-07 10:16

    In my case the problem was solved by Window -> Preferences -> Maven -> User Settings -> Update Settings. I don't know the problem cause at the first place.

    0 讨论(0)
  • 2020-12-07 10:20

    I solved this by running mvn -U install from command line and then "Maven->Update Project" from Eclipse

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