How can I convert a project to Maven nature when there is no sub-menu for Maven on right click in Eclipse? The project already has a POM file.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Right click on the project- Configure - Convert -Convert to Maven Project
This is also a method to refresh the Maven Dependencies.
回答2:
Delete the project (but do not delete it from disk) and re-import but choose to import an existing Maven project.
回答3:
I had the same issue. I do not even have the configure option as mentioned in the accepted answer. But as @captain said i deleted them, But importing as maven doesn't work either. So I tried the other option below.
Instead of importing as Existing maven project I imported them as General -> Projects from folder or Archive
.
This brought back maven nature and boot nature as well.