Search code examples
eclipsespringmaveneclipse-pluginm2eclipse

Eclipse Spring MVC template project and Maven dependences


I have a problem using Eclipse STS suite for developing Spring MVC project with Maven. By default, Spring MVC template uses maven for building. It builds with maven (rmc on pom.xml -> Run As -> Maven install) but eclipse highligts all maven-managemented dependencies in red. (and mark them as an errors) I'm using m2eclipse for eclipse WTP. Here is a screenshot: http://rghost.ru/24803261

And here is my pom.xml file: http://pastebin.com/5EvNQvHe


Solution

  • If there is no error marker in the pom.xml then is mostly only a refereshing problem.

    (Make sure, that Maven support is enables for this project ("package explorer"/Project/Maven/Enable Dependency Management).

    Then Try: right click on your project in the "package explorer", select Maven/Update Project Configuration to update the project configuration.