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

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

出现这个问题的主要原因是maven的路径不对

第一种解决方法是配置mavden的环境变量:M2_HOME=maven安装路径path添加%M2_HOME%;

第二种方法是配置maven路径

解决步骤:

一、打开file中的setting

Error running '** [install]': No valid Maven installation found. Either set the home director_第1张图片

第二在搜索框中输入maven   如 :我的maven路径是C:\Develop_Tools\apache-maven-3.6.0

Error running '** [install]': No valid Maven installation found. Either set the home director_第2张图片

在我的电脑里搜索apache-maven得到你的文件路径引入进去点击ok就可以了.

你可能感兴趣的:(java,idea,idea)