Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restore maven plugin for a project on eclipse

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.

enter image description here

How do I restore/reset/re-enable so that the entry appears again?

PS 1: I'd like to do that without re-importing the project.

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.

like image 888
kunigami Avatar asked Mar 22 '12 13:03

kunigami


People also ask

How do I revert Maven with E switch?

Right click your project and Run as -> Run Configurations... Add the -e (or other switches for eg. -X, etc.) in the Goals input box.


1 Answers

Solution:

Go to the project menu (right click on Package Explorer) > Configure > Convert to Maven Project

This should restore the entry in the project menu.

like image 72
kunigami Avatar answered Oct 23 '22 20:10

kunigami