Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to execute mvn command using IntelliJ IDEA?

I am trying to add Oracle JDBC driver in my local Maven repo. I have found this link to do so.

I want to do the same from Inside IntelliJ IDEA. Is there any way to execute mvn commands from IntelliJ IDEA?

like image 564
vatsal mevada Avatar asked Dec 02 '14 09:12

vatsal mevada


People also ask

How do I run an mvn test in IntelliJ?

Run testsOpen the Maven tool window. Under the Lifecycle node select test. Note that goals specified in the Maven surefire plugin will be activated at this phase and all tests in a project or in a module will be run.

How run mvn clean install in IntelliJ?

Click Run -> Edit Configurations -> Press + -> Search for "Maven" -> Locate "Command Line" field and enter in following maven commands "clean install" -> Press OK. Now click the green button to run that Run/Debug Configuration, this will maven clean install the module/project.


2 Answers

There is a button in maven menu of Intellij IDEA:

screenshot

Also you can always use "Terminal"

like image 117
Ruslan Ostafiichuk Avatar answered Oct 09 '22 13:10

Ruslan Ostafiichuk


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

like image 32
hossein Avatar answered Oct 09 '22 12:10

hossein