"Source folder is not a Java project" error in eclipse
I ran into the same issue and fixed it by converting my project to faceted form.
Right click your project > Properties > Project Facets > Convert to Faceted Form, and select Java.
In the maven project directory try
mvn eclipse:eclipse
that may do the trick.