Error running ‘** [install]‘: No valid Maven installation found. Either set the home director

Problem situation

In idea, Maven could not be packaged. This error was reported
error running ‘* * [install]’: no valid Maven installation found. Neither set the home director

Cause of the problem

1. The environment variables of mavden are not configured properly,
2. The Maven path is not configured correctly in idea

resolvent

The first solution is to configure the environment variable of mavden: m2_ Home = Maven installation path add% M2_ HOME%;
2 and enter Maven in the search box. For example, my Maven path is D: bigdata, bigdataone, datacourseware (1): maven, apache-maven-3.2.2

search my computer for Apache maven, get your file path, import it and click OK

Read More: