eclipse “Maven->更新项目配置”菜单项在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13726781/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 19:33:28  来源:igfitidea点击:

Where is the "Maven->Update project configuration" menu item?

eclipsemaven-2m2eclipsem2e

提问by Withheld

I am having a Missing Maven dependencies in Eclipse project exactly as described in this question, and I would love to use the solution found, but when I right-click my project in Project Explorer I can't find any such menu item:

我在 Eclipse 项目中有一个 Missing Maven 依赖项,正如这个问题中所描述的,我很想使用找到的解决方案,但是当我在项目资源管理器中右键单击我的项目时,我找不到任何这样的菜单项:

enter image description here

在此处输入图片说明

If I right-click the project's pom.xml, all I see in the Maven's menu is:

如果我右键单击项目的pom.xml,我在 Maven 的菜单中看到的只有:

enter image description here

在此处输入图片说明

Any idea what I should be doing to enable that Update project configurationmenu option?

知道我应该怎么做才能启用该Update project configuration菜单选项吗?

回答by Pieter

Righ click on the project: >Configure>Convert to Maven project

右击项目:>Configure>Convert to Maven project

And then you can Update project configuration

然后你可以更新项目配置

回答by Marwen Maawia

">Configure>Convert to Maven project" is missing

">Configure>Convert to Maven project" 缺失

回答by Marc S.

try "Team" - "Commit" in Eclipse and then in a shell:

在 Eclipse 中尝试“团队”-“提交”,然后在 shell 中尝试:

mvn dependecy:resolve