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

后端 未结 7 2044

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:45

    Although it's too late , But here is my experience .

    Whenever you get your maven project from a source controller or just copying your project from one machine to another , you need to update the dependencies .

    For this Right-click on Project on project explorer -> Maven -> Update Project.

    Please consider checking the "Force update of snapshot/releases" checkbox.

    If you have not your dependencies in m2/repository then you need internet connection to get from the remote maven repository.

    In case you have get from the source controller and you have not any unit test , It's probably your test folder does not include in the source controller in the first place , so you don't have those in the new repository.so you need to create those folders manually.

    I have had both these cases .

提交回复
热议问题