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
mvn is the command line tool for Maven. See https://maven.apache.org/install.html for details on how to install it. Or as you are using a Mac if you use brew try using it to install the maven formula.
If you have maven properly installed and you want to configure intelliJ terminal with a custom Terminal or if you want fix "command not found", follow these steps:
// The path you may have differs based on your OS, in example: "installationPath\Terminal Folder\bin\sh.exe --login"
I used git bash but technically it should work with every terminal. Do not forget to add --login after the *.exe
If it still doesn't work maybe you need to check:
Insert the path of your maven bin folder, in example:
Also insert the path of your jdk, in example:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.