Maven root pom.xml marked as red when importing existing project into eclipse

1. In Eclipse select -> File -> Switch Workspace -> Other... 2. The choose one directory up from the the one containing pom.xml 3. Import as Maven the project directory one directory up form the one you are intrested in. 4. Select project of interest from the list of projects.


Yes, You should start your Eclipse Workspace out of the pom.xml folder.

for example: D:\workspace\Project_Name.

In your Project_Name folder which contains pom.xml.

So you have to select D:\workspace while starting the eclipse.

And now, then import the project called Project_Name as maven project, It will work.

Hope, it will help !!