使用IDEA时,在Terminal中无法使用mvn clean install命令

系统:Windows10
错误提示
'mvn’不是内部或外部命令,也不是可运行的程序或批处理文件。
在这里插入图片描述
问题定位
系统中没有配置maven的环境变量
解决方案
1.配置环境变量的路径
控制面板——>系统和安全——>系统——>高级系统设置——>环境变量
2.在系统变量中检查jdk和maven的环境变量配置
配置MAVEN_HOME
在这里插入图片描述
配置path中的路径
在这里插入图片描述
注意:
1.jdk不配置也会引起mvn无法使用
2.JAVA_HOME,MAVEN_HOME配置不要加/bin,只到jdk,maven的路径
3.Path中需要加入/bin

GitHub 加速计划 / term / terminal
11
0
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:8 个月前 )
dd96ce4b Applies some localization fixes for the regex strings and Settings_ResetApplicationState.HelpText. Also renames the `_validateX()` functions to `_validateAndPopulateXRegex()` for clarity. 6 天前
076746a7 This works around a bug in WinUI where it creates a single context menu/flyout for text elements per thread, not per `XamlRoot`, similar to many other areas. Since the `XamlRoot` cannot change after creation, this means that once you've opened the flyout, you're locked into that window (= XAML root) forever. You can't open the flyout in another window and once you've closed that window, you can't open it anywhere at all. Closes #18599 ## Validation Steps Performed * Flies out right click in the * About dialog ✅ * Search dialog ✅ * Word delimiters setting ✅ * Launch size setting ✅ * Across two windows ✅ 6 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐