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.8k times
15
-
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
31
Right click on the project- Configure - Convert -Convert to Maven Project
This is also a method to refresh the Maven Dependencies.
ShrekWang
- 364
- 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,270
- 4
- 44
- 68
-
This helped me when a multi-module maven project "lost" its maven nature. – Tamas G. Jun 29 '18 at 12:31
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
- 187
- 1
- 11
1
In the latest IDE's it is this way: right click on project >> Configure >> Convert to Maven Project
Khaja Nizamuddin
- 145
- 1
- 1
- 8