Can Maven be made less verbose?

后端 未结 8 2125
遥遥无期
遥遥无期 2020-12-13 08:42

Maven spews out far too many lines of output to my taste (I like the Unix way: no news is good news).

I want to get rid of all [INFO] lines, but I couldn

8条回答
  •  再見小時候
    2020-12-13 09:15

    If you only want to get rid of the [INFO] messages you also could do:

    mvn ... | fgrep -v "[INFO]"
    

    To suppress all outputs (except errors) you could redirect stdout to /dev/null with:

    mvn ... 1>/dev/null
    

    (This only works if you use bash (or similar shells) to run the Maven commands.)

提交回复
热议问题