Maven:插件或其依赖项之一无法解析 [英] Maven: Plugin or one of its dependencies could not be resolved

查看:868
本文介绍了Maven:插件或其依赖项之一无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更改了Eclipse版本并重命名了工作区.现在,我的Maven项目出现如下错误:

I changed my Eclipse version and renamed the workspace. Now, my Maven projects get errors like this:

推荐答案

似乎您与Maven中央存储库没有正确的连接,请检查是否无法在Eclipse中获得连接.

It seems like you do not have a proper connection with the Maven central repository, check to see if you can't get a connection within Eclipse.

如果您的连接没有问题,请尝试以下操作:

If nothing wrong with your connection, try the following:

  1. 删除.m2存储库下的所有.lastUpdate文件.
  2. 在Eclipse中,右键单击您的项目,然后选择Maven->Update Project.
  3. 选择Force Update of Snapshots/Releases
  1. Remove all the .lastUpdate files under .m2 repository.
  2. In Eclipse, right click on your project and select Maven->Update Project.
  3. Choose Force Update of Snapshots/Releases

这篇关于Maven:插件或其依赖项之一无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆