How to log maven output to a file and without hidi

2019-03-25 07:44发布

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.

标签: logging maven
7条回答
神经病院院长
2楼-- · 2019-03-25 08:31

Maven 3 command output can be redirected now. See the below command on windows:

mvn -X install  > test.log

This will redirect the command output to test.log file ,located in the current directory.

查看更多
登录 后发表回答