恢复eclipse上的项目的maven插件 [英] Restore maven plugin for a project on eclipse

查看:122
本文介绍了恢复eclipse上的项目的maven插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过点击禁用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆