Editor/Viewer to display and analyze Maven logs?

前端 未结 3 409
逝去的感伤
逝去的感伤 2021-01-21 00:55

I use Maven for building Java projects. The output of Maven has immense size. Is there an editor or log viewer that makes analyzing logs easier?

相关标签:
3条回答
  • 2021-01-21 01:41

    I favor this approach. It provides a log, the command run and wall clock time from start to finish.

    function m-log
    {
    
      # Build
      echo "mvn $* 2>&1"
      time mvn $* 2>&1 |tee mvn.log
      echo "command mvn $* 2>&1" >> mvn.log
    }
    
    0 讨论(0)
  • 2021-01-21 01:46

    You can use Baretail, "A free real-time log file monitoring tool"

    http://www.baremetalsoft.com/baretail/

    0 讨论(0)
  • 2021-01-21 01:52

    less is your friend. You can also tee the output to some file and view that with your favorite editor.

    mvn clean package | less
    # or
    mvn clean package | tee mvn.log
    less mvn.log # using less as editor.
    
    0 讨论(0)
提交回复
热议问题