Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see Maven console in IntelliJ?

In Eclipse one could see the maven build log by going to Console window, clicking new and then selecting Maven Console.

enter image description here

How could I see maven log output in IntelliJ?

like image 617
Kshitiz Sharma Avatar asked Mar 23 '15 04:03

Kshitiz Sharma


1 Answers

If you configure a Maven Launch-Configuration and execute it the according Maven build output will be displayed in the Run-Tab by default:

enter image description here

enter image description here

enter image description here

(Note: There is a Tab Logs where you can configure additional log relevant settings such as logging to a file).

If you dont like to setup a Run-Configuration for each Maven build (in Intellij as it seems you cant just right click a pom.xml and click run as...) you can call Maven directly from the Tab Terminal

enter image description here

(Note: In my scenario the system variable M2_HOME was set to the maven installation directory and added to the windows PATH variable - after that you can run mvn from any directory - especially from directories containing pom.xml files)

like image 182
JBA Avatar answered Oct 14 '22 03:10

JBA