I am setting up a project in eclipse . This projects builds successfully through command line(all mvn commands like mvn package, mvn compile<
mvn
mvn package
mvn compile<
The following worked for me. Just right-click on Project -> Maven -> Update Project... such as it is shown here.
Project -> Maven -> Update Project...