Is is possible to modify the maven console output to hide the [INFO] logging?

前端 未结 4 809
一生所求
一生所求 2020-12-30 19:24

I was wondering if it was possible to modify the output from maven to for example hide the lines that start with [INFO] or to be able to see lines that start with [DEBUG]?

4条回答
  •  星月不相逢
    2020-12-30 19:55

    From their own docs, you want this:

    RESULT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
    echo $RESULT
    

    For reference, see: https://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html#forceStdout

提交回复
热议问题