Eclipse&Maven导入Maven项目后在pom.xml出现"Missing artifact org.springframework:spring-jdbc:jar:3.2.4.RELEAS"

盖锐进
2023-12-01
       同学的一个项目需要协作开发,从他的电脑上导出的Maven项目,到了我的电脑上的Eclipse里,在pom.xml文件中出现
        "Missing artifact org.springframework:spring-jdbc:jar:3.2.4.RELEASE"错误


        解决方法:(在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.


 类似资料: