[FATAL_ERROR] Cannot start Maven: No valid Maven installation found

用Maven新建项目的时候控制台出现如下提示:

 [FATAL_ERROR] Cannot start Maven: No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.

极大可能是Maven的setting.xml文件路径或者是repotistory路径无效

点击File,在Setting中找到Maven相关配置,设置为有效路径即可:

[FATAL_ERROR] Cannot start Maven: No valid Maven installation found_第1张图片 

你可能感兴趣的:(Java)