Add Maven nature to existing Eclipse project that

2020-08-11 04:13发布

问题:

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.