智能与Maven - 找不到 mvn 命令 [英] IntelliJ & Maven - mvn command not found
问题描述
我正在尝试构建一个使用 IntelliJ 创建的放置向导项目.当我跑
mvn 包
我明白
bash: mvn: 命令未找到
我使用的是 Mac 并且正在学习本教程:
I'm trying to build a drop wizard project created with IntelliJ. when I run
mvn package
I get
bash: mvn: command not found
I'm on a Mac and I'm following this tutorial: http://www.dropwizard.io/0.9.2/docs/getting-started.html
According to IntelliJ documentation (https://www.jetbrains.com/help/idea/2016.1/maven.html?origin=old_help)
Maven integration is shipped with IntelliJ IDEA, and you do not need to perform any additional actions to install it. You can start using it straight away for importing Maven projects, working with them and for running Maven goals.
So I don't know what I'm suppose to do in order to use the command line Any idea?
Thanks
In IntelliJ, on the right hand side, click "Maven", and expand "Lifecycle" Select "Package" and click "Run" (green arrow).
这篇关于智能与Maven - 找不到 mvn 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!