简体   繁体   English

在intellij上找不到MVN命令

[英]MVN command not found on intellij

I am new to mvn and intellij and I was trying to import a mvn(spring boot) project into intellij but intellij is not able to resolve all the mvn dependencies.我是 mvn 和 intellij 的新手,我试图将 mvn(spring boot) 项目导入 intellij,但 intellij 无法解决所有 mvn 依赖项。 And when I type mvn --version on the terminal on intellij it shows mvn command not found.当我在 intellij 的终端上键入 mvn --version 时,它显示未找到 mvn 命令。 How do I resolve this issue?我该如何解决这个问题? (I have also tried to run mvn install command but that is also not working) (我也试过运行 mvn install 命令,但这也不起作用)

Make sure that your internet works.确保您的互联网工作正常。 Mark main directory as sources/root by right click on the folder.通过右键单击文件夹将主目录标记为源/根目录。 Build the project completely again.再次完全构建项目。

Also, you can check whether your project consists the mvn settings if not you can configure it to a mvn project and vice versa.此外,您可以检查您的项目是否包含 mvn 设置,如果没有,您可以将其配置为 mvn 项目,反之亦然。

看一看!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM