2016-04-15 41 views
2

-q選項對我來說有點太安靜,只顯示調試和錯誤。如何強制Maven乾淨安裝以僅顯示構建摘要?

有什麼辦法可以強制Maven輸出總結嗎?

即:

[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] project ........................................... SUCCESS [ 2.437 s] 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD SUCCESS 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 04:30 min 
[INFO] Finished at: 2016-04-15T10:35:15-05:00 
[INFO] Final Memory: 221M/1383M 
[INFO] ------------------------------------------------------------------------ 

回答

2

像這樣的事情會工作

(mvn clean install -l temp.build.log; grep -B 1 -A 500 Reactor\ Summary temp.build.log; rm temp.build.log)