Kshitiz Sharma
Kshitiz Sharma

Reputation: 18597

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?

Upvotes: 21

Views: 31509

Answers (3)

Alexander Schilpp
Alexander Schilpp

Reputation: 116

I had the same problem with seeing no console output.

Reason was, I had a non-existing JRE in my Maven configuration, and running Maven from the Maven toolbar opened neither the Run tab nor displayed any kind of error message.

Check: Settings > Build, Execution, Deployment > Build Tools > Maven > Runner > JRE

Upvotes: 0

SimonA
SimonA

Reputation: 9

IDEA is calling Maven via API so there is no regular console output available.

see:intellij-support-forum

Upvotes: 0

JBA
JBA

Reputation: 2844

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)

Upvotes: 8

Related Questions