Search code examples
filemavenbatch-filedependencies

Hide maven output apart from the tree using mvn dependency:tree in batch file


I have written a batch wrapper script which runs

mvn dependency:tree

on a load of maven projects.

I want the output to display only the trees, I don't need all the other things maven prints out e.g.

[INFO] Scanning for projects

I have tried quiet mode but because the tree is not an error I see no output.


Solution

  • You can use the outputFile property to have it output it to a file. Also look at appendOutput if you need to append the output all together into one file.