Maven构建出错:mvn.bat无法识别 [英] Error in Maven build: mvn.bat not recognized
本文介绍了Maven构建出错:mvn.bat无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在NetBeans下构建Java项目时(配置了外部Maven),我收到以下错误:
C :\Users ...... \ bin\mvn.bat无法识别为内部或外部命令,可运行程序或批处理文件
编辑:使用Maven 3.3.3,Windows 10;
在工具>选项> Java> Maven>执行> Maven主页>浏览中为NetBeans添加了自定义maven
我该怎么办?
解决方案
要解决它:
- 转到Maven安装文件夹
- 转到
bin
- 确保您可以看到文件扩展名
- 复制
mvn.cmd
和mvnDebug.cmd
并重命名这些副本以扩展.bat
- 立即尝试构建项目
While trying to build a Java project under NetBeans (with an external Maven configured), I got the following error:
"C:\Users......\bin\mvn.bat"" is not recognized as an internal or external command, operable program or batch file"
Edit: Using Maven 3.3.3, Windows 10; Added custom maven to NetBeans under Tools > Options > Java > Maven > Execution > Maven Home > Browse
What can I do?
解决方案
To solve it:
- Go to the Maven installation folder
- Go to
bin
- Make sure you can see file extensions
- Duplicate
mvn.cmd
andmvnDebug.cmd
and rename those copies to have the extension.bat
- Try building the project now
这篇关于Maven构建出错:mvn.bat无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文