Detailed IDEA installation of Maven on the entire network, solving the problem The plugin org.codehaus.mojo:flatten-maven-plugin:1.5.0 requires Maven version 3.5

1. Reproducing the error


Today, when cleaning the project, the following error was reported:
Insert image description here

2. Analysis errors


The error details in the image above are: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].

We pay attention to flatten-maven-plugin in the error message. The version of flatten-maven-plugin is 1.5.0, which supports The Maven version must be above3.5.0. Therefore, you need to confirmMavenversion information.

flatten-maven-plugin’s official website address:https://www.mojohaus.org/flatten-maven-plugin/

So, according toFile -> Settings -> Build, Execution, Deployment -> Build Tools | Mavenpath&

Guess you like

Origin blog.csdn.net/lvoelife/article/details/134825488