The best way to do this, after importing the project into the eclipse workspace, run below the maven command to make it compatible with Eclipse.
mvn eclipse:eclipse
This will solve your eclipse errors and maven dependecy.
You can also check if the problem is related to your imported project, i.e. there are no libraries or just using eclipse.
You can try to create a project from the command line to check it with
mvn clean install
After execution, update the eclipse workspace.
Note. Run the commands from where your pom.xml is located.
darshgohel
source share