如何在运行maven clean install时从控制台中删除main [DEBUG]行

时间:2015-08-12 11:17:27

标签: maven

在运行Maven clean install命令时,我在控制台上获得了很多这些行,这占用了太多空间。我已经尝试使用maven命令删除调试语句,但它们仍然存在。

[main] DEBUG 
117  [main] DEBUG 
219  [main] DEBUG 
313  [main] DEBUG 
415  [main] DEBUG 
539  [main] DEBUG 
629  [main] DEBUG 

2 个答案:

答案 0 :(得分:0)

使用-q或--quiet参数运行maven,将只显示错误。

答案 1 :(得分:0)

这个maven命令足够你了

### opening file: try with "GetActiveObject" function, otherwise try with "new" function 
my $Word;
eval {
    $Word = Win32::OLE->GetActiveObject('Word.Application') 
         || Win32::OLE->new('Word.Application', 'Quit');
};
if ($@) {
    #MS Word shall be opened manually
    print "Please open MS Word manually before continuing\n";
    print "...Press ENTER to continue...\n";
    <STDIN>;
    $Word = Win32::OLE->GetActiveObject('Word.Application','Quit');
}

从此资源:http://books.sonatype.com/mvnref-book/reference/running-sect-options.html#running-sect-verbose-option

mvn validate clean install | egrep -v "(^\[INFO\]|^\[DEBUG\])"