1. 复现错误
今天,在 clean 项目时,报出如下错误:
2. 分析错误
上图错误的详细信息为:Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.5.0:clean (flatten.clean) on project yudao-dependencies: The plugin org.codehaus.mojo:flatten-maven-plugin:1.5.0 requires Maven version 3.5.4 -> [Help 1]
。
我们注意错误信息中的flatten-maven-plugin
,flatten-maven-plugin
的版本是1.5.0
,它支持的Maven
版本要在3.5.0
以上。因而,需要确认Maven
版本信息。
flatten-maven-plugin
的官网地址:https://www.mojohaus.org/flatten-maven-plugin/
于是,根据File -> Settings -> Build, Execution, Deployment -> Build Tools | Maven
路径&