How do I get my Eclipse-Maven project to automatically update its classpath when I change a dependency in my pom.xml file?

When you import the project into Eclipse, use Eclipse’s own built-in Maven support (aka, m2e). I recommend against using mvn eclipse:eclipse as it doesn’t give the best results (as you’re seeing). Maven is a build and dependency management tool, not an IDE; expecting it to manage IDE-specific stuff is silly, in my opinion (I realize … Read more

My Application Could not open ServletContext resource

Quote from the Spring reference doc: Upon initialization of a DispatcherServlet, Spring MVC looks for a file named [servlet-name]-servlet.xml in the WEB-INF directory of your web application and creates the beans defined there… Your servlet is called spring-dispatcher, so it looks for /WEB-INF/spring-dispatcher-servlet.xml. You need to have this servlet configuration, and define web related beans … Read more