Maven项目报错Could not transfer artifact org.apache.maven.pluginsmaven-clean-pluginp

1,616 阅读1分钟

今天在创建maven项目时出现错误。

Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

检查发现是setting中maven的路径和本地仓库的路径不一致导致的。

这个博主也遇到了同样的问题,不过他的原因不是这个,记录一下。