项目场景:

在局域网开发,导入工程以后,将适配的maven本地仓库也导入进来,将开发环境搭建完成。然后maven install 打包的时候就报了如下问题:

Plugin org.apache.maven.plugins:maven-surefire-plugin:3.2.2 or one of is dependences could not be reslved:

问题描述

详细问题如下:

[ERRok] plugin org.apache.maven,plugins:mavensurefire plugin:3.2.2 or one of its dependencies could not be resolved: railed to read artifact descriptor fororg.apache.maven.plugins:maven-surefireplugin:jar:3.2.2: mhe following artifacts could not be resolved: org,apaorg.apache maven,surefire:surefire:pom:3,2.2 was not found in file:/D: epository grpc repository during a previous atempt. mhis failre was cached in the local repositary amhe .maven,surefire:surefire:pom:3.2.2(absent)resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

在这里插入图片描述


原因分析:

通过百度,找到原因,可能是由于idea自带的maven版本冲突导致的。


解决方案:

不使用IDEA提供的maven,改成了自己的maven了。

在这里插入图片描述
在这里插入图片描述

然后再执行 maven install 问题即可解决。

Logo

一站式 AI 云服务平台

更多推荐