Search code examples
maven

IntelliJ & Maven - mvn command not found


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


Solution

  • In IntelliJ, on the right hand side, click "Maven", and expand "Lifecycle" Select "Package" and click "Run" (green arrow).

    enter image description here