maven-compiler-plugin
maven-compiler-plugin copied to clipboard
[MCOMPILER-456] Create a log file and show effective arguments
Delany opened MCOMPILER-456 and commented
Allow configuration of a log file for compilation only output, like surefire plugin does. The log file should also include arguments passed to the compiler.
MSbuild has extensive options, like multiple loggers that might be worth adding https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2019
Affects: 3.8.1
Delany commented
If you want to go to Xanadu, and someone else already travelled there, surely your best preparation is to ask them about their trip?
Delany commented
I found the javac non-standard argument to redirect stdout. But the default compiler won't accept it, and I have to fork the build
<configuration>
<fork>true</fork>
<compilerArgs combine.children="append">
<arg>-Xstdout</arg>
<arg>${project.build.directory}/javac.log</arg>
</compilerArgs>
</configuration>
This increases the build time of my 500 module reactor from 5min to 20min.
Should this rather be a "fork compiler once for reactor" ticket?