I've investigated how to get maven output logs automatically without passing any additional arguments. For example, to access the output log from a maven compile command, --log-file log.txt
can be added after the maven command saving the log at a specific directory.
However, I'd like to know if there is a way to achieve such goal without explicitly adding arguments. If it is possible to add arguments in a configuration file, or even override the command behavior.
I searched for something like hooks for git, but I didn't find anything related. Could someone share any knowledge about it?