How to execute mvn command using IntelliJ IDEA?

There is a button in maven menu of Intellij IDEA:

screenshot

Also you can always use "Terminal"


Just press the ctrl key twice!

Then you will see this: Command window

Then run your maven command

https://www.jetbrains.com/help/idea/work-with-maven-goals.html


You can check the Image :

enter image description here

If you don't fine the Maven Projects there then you can open it from Bottom Left part of Intellij IDEA, there's one Square Button there. click on it.

If You don't have configure the maven path then you also need to configure maven directory also. Using maven settings.