我改本地仓库地址之后,pom.xml的文件头部,<project>标签处就报了错
Failure to transfer org.apache.maven.plugins:maven-resources-plugin:jar:2.5 from http://maven.oschina.net/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-osc has elapsed .......
原因是由于缺少maven-plugin-api的jar包
解决办法:
在pom.xml文件中加入maven-plugin-api配置
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.3.9</version>
</dependency>
然后保存刷新
本文介绍了一种在修改本地仓库地址后遇到的Maven错误,并提供了详细的解决方案。通过在pom.xml文件中添加maven-plugin-api依赖,可以解决因缺少jar包导致的问题。
6116

被折叠的 条评论
为什么被折叠?



