Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log maven output to a file and without hiding console?

Tags:

logging

maven

I want to save maven output to a file, but without loosing the output to console. Usage of tee is not an option because I run under Windows and also I do not want to add a binary tee.exe to the source tree.

like image 836
sorin Avatar asked Jan 20 '11 08:01

sorin


People also ask

Where can I find maven logs?

home}/conf/logging/simplelogger. properties file. then Maven will show the date-time info in the above format.

How do I view maven logs in Intellij?

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


1 Answers

If you are using linux. you can use the bellow command. mvn install -X | tee log.txt

like image 159
Varun Avatar answered Sep 23 '22 00:09

Varun