解决方法:(在stackoverflow上找到的答案)
In case you haven't already done it, try updating the project with regard to Maven.
In Eclipse Kepler, right-click on the project, then Maven > Update Project...
and then make sure your project is checked under Available Maven Codebases
, and that Update project configuration from pom.xml
is checked, then select OK
.
For older versions of Eclipse, you just right-click on the project, then Maven
, and then I believe Update project configuration
.
Each of these should signal to Eclipse that the pom.xml
has been updated, and that it needs to be reexamined and to download any dependencies.