In Eclipse m2e, how to reference workspace project?

后端 未结 5 1686
一向
一向 2020-12-22 20:12

How can I reference another workspace project using Eclipse m2e?

Do I have to add a project dependency in the project setting? But in that case the depende

5条回答
  •  我在风中等你
    2020-12-22 21:06

    I'd go even further than this. If you've ever run mvn eclipse:eclipse on your project then you're probably in trouble. I had a situation where I had both a "Referenced Libraries" section and a "Maven Dependencies" section in my eclipse project, with conflicting library versions, causing eclipse and myself inevitable confusion.

    The safest thing I found was to run mvn eclipse:clean from the command line then go back in to eclipse, refresh the project, "OK" the resulting problem dialog, and then go Maven > Update Project. This sorted it all out for me.

提交回复
热议问题