How to configure Eclipse build path to use Maven dependencies?
if you execute
mvn eclipse:clean
followed by
mvn eclipse:eclipse
if will prepare the eclipse .classpath
file for you. That is, these commands are run against maven from the command line i.e. outside of eclipse.
If you right-click on your project, there should be an option under "maven" to "enable dependency management". That's it.