Error: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not b 作者:马育民 • 2021-07-14 22:21 • 阅读:10456 当运行 `mvn clean`, `mvn install` 时,会出现以下 waring 和 error: ``` [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to aliyun (http://maven.aliyun.com/nexus/content/groups/public/): /devtools/apache-maven-3.5.2/repo/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom.part.lock (没有那个文件或目录) -> [Help 1] ``` 是因为当前使用的本地中的plugin不可用。可能是第一次下载没下载成功,没下载完全导致的。所以解决办法就是先删除本地下载失败的插件,然后重新build。 解决办法:删除本地的相应目录下的plugins,从上面的错误中可以看出,plugin不可用,删除 `/devtools/apache-maven-3.5.2/repo/org/apache/maven/plugins` 目录下所有文件,然后重新执行命令,会再次自动下载 plugin是 原文出处:http://malaoshi.top/show_1IX1UUgkqlzw.html