The container 'Maven Dependencies' references non existing library - STS

后端 未结 7 1906

I\'m using win8 previously I had been running Eclipse Juno on my pc but from now on I wanted to start using STS, I am getting the below error as soon as I create a new project.

7条回答
  •  生来不讨喜
    2021-01-30 17:27

    So I get you are using Eclipse with the M2E plugin. Try to update your Maven configuration : In the Project Explorer, right-click on the project, Maven -> Update project.

    If the problem still remains, try to clean your project: right-click on your pom.xml, Run as -> Maven build (the second one). Enter "clean package" in the Goals fields. Check the Skip Tests box. Click on the Run button.

    Edit: For your new problem, you need to add Spring MVC to your pom.xml. Add something like the following:

    
        org.springframework
        spring-webmvc
        4.0.0.RELEASE
    
    

    Maybe you have to change the version to match the version of your Spring framework. Take a look here:

    http://mvnrepository.com/artifact/org.springframework/spring-webmvc

提交回复
热议问题