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

后端 未结 7 1230
离开以前
离开以前 2021-02-13 01:38

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 t

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 02:03

    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.

提交回复
热议问题