简体   繁体   中英

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.

在此输入图像描述

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM