Send maven output to file

后端 未结 3 372
眼角桃花
眼角桃花 2021-02-01 00:32

On Windows 7, I am trying to send the output of a maven-3 command to a text file.

I call the command from the root of the project I am trying to analyze

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 01:00

    Try mvn -help

     -l,--log-file   Log file to where all build output will go.                               
    

    mvn --log-file log.txt

提交回复
热议问题