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.
Asked
Active
Viewed 1.9k times
16
-
1Possible duplicate of http://stackoverflow.com/q/2449461/2670892 – greg-449 Sep 04 '15 at 13:56
-
@greg I found that question while I was initially looking for a solution, but that is for a project that does not already use Maven as its build tool it looks like. – Captain Man Sep 04 '15 at 14:06
4 Answers
33
Right click on the project- Configure - Convert -Convert to Maven Project
This is also a method to refresh the Maven Dependencies.

ShrekWang
- 384
- 3
- 6
5
Delete the project (but do not delete it from disk) and re-import but choose to import an existing Maven project.

Captain Man
- 6,997
- 6
- 48
- 74
-
This helped me when a multi-module maven project "lost" its maven nature. – Tamas G. Jun 29 '18 at 12:31
2
In the latest IDE's it is this way: right click on project >> Configure >> Convert to Maven Project

Khaja Nizamuddin
- 167
- 1
- 2
- 9
1
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.

Rajesh2389
- 349
- 2
- 15