No valid Maven installation found. Either set the home directory in the configuration dialog or set

简介: No valid Maven installation found. Either set the home directory in the configuration dialog or set

报错:No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.


原因:IDEA的maven地址设置出错,系统找不到指定的maven路径


设置正确的maven链接地址:setting---->maven

6e7c002ea0404692a9b928ae31834b19.png更新项目后.mvn配置文件也会造成maven地址不对,去掉勾选,使用本地maven配置

相关文章
|
4月前
|
Java Maven
Mac Maven环境变量配置 zsh: command not found: mvn
Mac Maven环境变量配置 zsh: command not found: mvn
224 0
|
5月前
|
运维 Java Devops
阿里云云效操作报错合集之进行Maven打包时,遇到报错"ERR: No email loop found by ",该怎么办
本合集将整理呈现用户在使用过程中遇到的报错及其对应的解决办法,包括但不限于账户权限设置错误、项目配置不正确、代码提交冲突、构建任务执行失败、测试环境异常、需求流转阻塞等问题。阿里云云效是一站式企业级研发协同和DevOps平台,为企业提供从需求规划、开发、测试、发布到运维、运营的全流程端到端服务和工具支撑,致力于提升企业的研发效能和创新能力。
|
7月前
|
开发工具 git
If you are using the git profile, you need to set a Git URI in your configuration. If you are using
If you are using the git profile, you need to set a Git URI in your configuration. If you are using
159 0
|
缓存 Java Maven
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
maven出现Dependency not found 和Could not find artifact的解决方法(已解决)
3128 0
Plugin ‘maven-clean-plugin:3.1.0‘ not found
Plugin ‘maven-clean-plugin:3.1.0‘ not found
223 0
|
Java Maven
Error running ‘ssm [clean]‘: No valid Maven installation found. Either set the home directory in the
Error running ‘ssm [clean]‘: No valid Maven installation found. Either set the home directory in the
127 0
|
Java Shell Maven
mac安装maven后mvn命令可用,一段时间后又遇到zsh: command not found: mvn的问题
mac安装maven后mvn命令可用,一段时间后又遇到zsh: command not found: mvn的问题
852 0
mac安装maven后mvn命令可用,一段时间后又遇到zsh: command not found: mvn的问题
|
Java Maven
maven jsp报错javax.servlet.http.HttpServlet“ was not found on the Java Build Path
maven jsp报错javax.servlet.http.HttpServlet“ was not found on the Java Build Path
244 0
|
19天前
|
Java Maven
maven项目的pom.xml文件常用标签使用介绍
第四届人文,智慧教育与服务管理国际学术会议(HWESM 2025) 2025 4th International Conference on Humanities, Wisdom Education and Service Management
74 8