恢复eclipse上的项目的maven插件 [英] Restore maven plugin for a project on eclipse
问题描述
我已经通过点击禁用Maven自然来禁用项目的m2eclipse插件,如下图所示。然后,Maven条目从菜单中消失,我无法恢复。
I've disabled m2eclipse plugin for a project by clicking on "Disable Maven Nature" as shown in the Figure below. Then the Maven entry disappeared from the menu and I'm unable to restore it.
如何恢复/重置/重新启用,以便条目再次出现?
How do I restore/reset/re-enable so that the entry appears again?
PS 1:我不想再重新导入项目,而是要这样做。
PS 1: I'd like to do that without re-importing the project.
PS 2: code> $ {WORKSPACE} /。metadata\.plugins\org.eclipse.m2e.core.ui 和 $ {WORKSPACE} /。metadata \
PS 2: I've looked in ${WORKSPACE}/.metadata\.plugins\org.eclipse.m2e.core.ui
and ${WORKSPACE}/.metadata\.plugins\org.eclipse.m2e.core
but nothing seems related.
推荐答案
解决方案:
转到项目菜单(右键单击包资源管理器)> 配置
> 转换到Maven项目
Go to the project menu (right click on Package Explorer) > Configure
> Convert to Maven Project
这应该还原项目菜单中的条目。
This should restore the entry in the project menu.
这篇关于恢复eclipse上的项目的maven插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!