m2eclipse error

前端 未结 17 1146
忘掉有多难
忘掉有多难 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.

提交回复
热议问题