创建Maven项目时,报错资源can not be read or load

由于自己的pom.xml是直接赋值其他项目的,接着报错如下:

Description Resource Path Location TypeArchive for required library: 'C:\Users\xxx\.m2\repository\commons-lang\commons-lang\2.6' cannot be read or load in project `xxxx`

这个时候,需要删掉C:\Users\xxx.m2\repository下的commons-lang文件夹,然后更新maven项目即可。
类似如果报有关于无法找到mysql驱动的错误时,只要删掉仓库中关于mysql的包,然后更新maven项目即可。

猜你喜欢

转载自blog.csdn.net/qq_32293345/article/details/80104599