智能与Maven - 找不到 mvn 命令 [英] IntelliJ & Maven - mvn command not found

查看:90
本文介绍了智能与Maven - 找不到 mvn 命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆