Editor/Viewer to display and analyze Maven logs?

蓝咒 提交于 2019-12-01 20:54:49

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

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

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.

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
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!