Editor/Viewer to display and analyze Maven logs?

爷,独闯天下 提交于 2019-12-20 02:32:37

问题


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?


回答1:


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

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




回答2:


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.



回答3:


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
}


来源:https://stackoverflow.com/questions/8278651/editor-viewer-to-display-and-analyze-maven-logs

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